Skip to content

Commit cd69b0c

Browse files
committed
[Attributor][FIX] Initialize out parameters
1 parent b872233 commit cd69b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11356,7 +11356,7 @@ struct AAPotentialValuesReturned : public AAPotentialValuesFloating {
1135611356
/// See AbstractAttribute::updateImpl(...).
1135711357
ChangeStatus updateImpl(Attributor &A) override {
1135811358
auto AssumedBefore = getAssumed();
11359-
bool UsedAssumedInformation;
11359+
bool UsedAssumedInformation = false;
1136011360

1136111361
SmallVector<AA::ValueAndContext> Values;
1136211362
Function *AnchorScope = getAnchorScope();
@@ -11441,7 +11441,7 @@ struct AAPotentialValuesReturned : public AAPotentialValuesFloating {
1144111441
Changed = ChangeStatus::CHANGED;
1144211442
return true;
1144311443
};
11444-
bool UsedAssumedInformation;
11444+
bool UsedAssumedInformation = false;
1144511445
(void)A.checkForAllInstructions(RetInstPred, *this, {Instruction::Ret},
1144611446
UsedAssumedInformation,
1144711447
/* CheckBBLivenessOnly */ true);

0 commit comments

Comments
 (0)