Skip to content

Commit 3c2e592

Browse files
sohaibiftikhargithub-actions[bot]
authored andcommitted
Automerge: [LLVM][CppCompile] Fix unused variable warning after 0e02541 (#163203)
[LLVM][CppCompile] Fix unused variable warning after 0e02541 Fixes unused variable warning for libTransform with non debug builds. Folds the unused variable into the assert.
2 parents 137a9b3 + f140491 commit 3c2e592

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ static bool replaceIfIdentical(PHINode &PHI, PHINode &ReplPHI) {
269269

270270
bool EliminateNewDuplicatePHINodes(BasicBlock *BB,
271271
BasicBlock::phi_iterator FirstExistingPN) {
272-
auto NewPHIs = make_range(BB->phis().begin(), FirstExistingPN);
273-
assert(!PHIAreRefEachOther(NewPHIs));
272+
assert(!PHIAreRefEachOther(make_range(BB->phis().begin(), FirstExistingPN)));
274273

275274
// Deduplicate new PHIs first to reduce the number of comparisons on the
276275
// following new -> existing pass.

0 commit comments

Comments
 (0)