diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 9821d9e28220..64238ca58771 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -4460,7 +4460,7 @@ struct AAValueSimplifyFloating : AAValueSimplifyImpl { ChangeStatus updateImpl(Attributor &A) override { bool HasValueBefore = SimplifiedAssociatedValue.hasValue(); - auto VisitValueCB = [&](Value &V, bool, bool Stripped) -> bool { + auto VisitValueCB = [&](Value &V, bool &, bool Stripped) -> bool { auto &AA = A.getAAFor(*this, IRPosition::value(V)); if (!Stripped && this == &AA) { // TODO: Look the instruction and check recursively. @@ -4472,7 +4472,7 @@ struct AAValueSimplifyFloating : AAValueSimplifyImpl { return checkAndUpdate(A, *this, V, SimplifiedAssociatedValue); }; - bool Dummy; + bool Dummy = false; if (!genericValueTraversal(A, getIRPosition(), *this, Dummy, VisitValueCB)) if (!askSimplifiedValueForAAValueConstantRange(A))