Skip to content

Commit d1340c8

Browse files
author
Joe Shajrawi
authored
Merge pull request #18998 from shajrawi/fix_licm_warning
Fix a warning in LICM in release builds
2 parents 6567438 + 8e935f6 commit d1340c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/LoopTransforms/LICM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ hoistSpecialInstruction(std::unique_ptr<LoopNestSummary> &LoopSummary,
346346
}
347347
LLVM_DEBUG(llvm::errs() << " Successfully hosited and sank pair\n");
348348
} else {
349-
auto *REA = static_cast<RefElementAddrInst *>(Inst);
350-
LLVM_DEBUG(llvm::dbgs() << "Hoisted RefElementAddr " << *REA);
349+
LLVM_DEBUG(llvm::dbgs() << "Hoisted RefElementAddr "
350+
<< *static_cast<RefElementAddrInst *>(Inst));
351351
}
352352
Changed = true;
353353
}

0 commit comments

Comments
 (0)