Skip to content

Commit ff2f509

Browse files
committed
[Attributor] Fold single-use variable into assert
Fixes unused variable warning in Release builds.
1 parent 0a076f2 commit ff2f509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8661,9 +8661,9 @@ static bool runAttributorOnFunctions(InformationCache &InfoCache,
86618661
A.identifyDefaultAbstractAttributes(*F);
86628662
}
86638663

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

0 commit comments

Comments
 (0)