Skip to content

Commit

Permalink
[Attributor] Fold single-use variable into assert
Browse files Browse the repository at this point in the history
Fixes unused variable warning in Release builds.
  • Loading branch information
d0k committed Mar 23, 2020
1 parent 0a076f2 commit ff2f509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/Attributor.cpp
Expand Up @@ -8661,9 +8661,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 ff2f509

Please sign in to comment.