diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp index c2086f359ac02..95d2bf92d2023 100644 --- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp +++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp @@ -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 Values; Function *AnchorScope = getAnchorScope(); @@ -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);