Skip to content

Commit

Permalink
[Attributor] Fix -Wunused-variable for -DLLVM_ENABLE_ASSERTIONS=off b…
Browse files Browse the repository at this point in the history
…uilds after b4352e4
  • Loading branch information
MaskRay committed Feb 15, 2020
1 parent 6b14814 commit fd5665a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/Attributor.cpp
Expand Up @@ -8318,9 +8318,9 @@ static bool runAttributorOnFunctions(InformationCache &InfoCache,
A.identifyDefaultAbstractAttributes(*F);
}

Module &M = *Functions.front()->getParent();
ChangeStatus Changed = A.run();
assert(!verifyModule(M, &errs()) && "Module verification failed!");
assert(!verifyModule(*Functions.front()->getParent(), &errs()) &&
"Module verification failed!");
LLVM_DEBUG(dbgs() << "[Attributor] Done with " << Functions.size()
<< " functions, result: " << Changed << ".\n");
return Changed == ChangeStatus::CHANGED;
Expand Down

0 comments on commit fd5665a

Please sign in to comment.