Skip to content

Commit

Permalink
[Attributor] Avoid uninitialized memory read.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed Jun 24, 2023
1 parent 6b50a10 commit 2caf64d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/include/llvm/Transforms/IPO/Attributor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5795,6 +5795,7 @@ template <Attribute::AttrKind AK>
bool hasAssumedIRAttr(Attributor &A, const AbstractAttribute &QueryingAA,
const IRPosition &IRP, DepClassTy DepClass, bool &IsKnown,
bool IgnoreSubsumingPositions = false) {
IsKnown = false;
switch (AK) {
#define CASE(ATTRNAME, AANAME) \
case Attribute::ATTRNAME: { \
Expand Down

0 comments on commit 2caf64d

Please sign in to comment.