[Attributor][Fix] Initialize unused but loaded variable

This hopefully un-breaks:
  http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/38333
This commit is contained in:
Johannes Doerfert 2020-01-28 23:51:25 -06:00
parent ea5fabe60c
commit 76843ba37f
1 changed files with 2 additions and 2 deletions

View File

@ -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<AAValueSimplify>(*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<AAValueSimplify, bool>(A, getIRPosition(), *this,
Dummy, VisitValueCB))
if (!askSimplifiedValueForAAValueConstantRange(A))