Skip to content

Commit f140491

Browse files
[LLVM][CppCompile] Fix unused variable warning after 0e02541 (llvm#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.
1 parent 474ed53 commit f140491

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)