Skip to content

Commit

Permalink
[Attributor][FIX] Initialize out parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed Jul 17, 2023
1 parent b872233 commit cd69b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11356,7 +11356,7 @@ struct AAPotentialValuesReturned : public AAPotentialValuesFloating {
/// See AbstractAttribute::updateImpl(...).
ChangeStatus updateImpl(Attributor &A) override {
auto AssumedBefore = getAssumed();
bool UsedAssumedInformation;
bool UsedAssumedInformation = false;

SmallVector<AA::ValueAndContext> Values;
Function *AnchorScope = getAnchorScope();
Expand Down Expand Up @@ -11441,7 +11441,7 @@ struct AAPotentialValuesReturned : public AAPotentialValuesFloating {
Changed = ChangeStatus::CHANGED;
return true;
};
bool UsedAssumedInformation;
bool UsedAssumedInformation = false;
(void)A.checkForAllInstructions(RetInstPred, *this, {Instruction::Ret},
UsedAssumedInformation,
/* CheckBBLivenessOnly */ true);
Expand Down

0 comments on commit cd69b0c

Please sign in to comment.