Skip to content

Commit e630a45

Browse files
committed
[HCS] Fix unused variable warnings. NFCI.
1 parent bc841bb commit e630a45

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Transforms/IPO/HotColdSplitting.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,10 @@ bool HotColdSplitting::outlineColdRegions(Function &F, bool HasProfileSummary) {
716716
})) {
717717
ColdBlocks.insert(SubRegion.begin(), SubRegion.end());
718718

719-
for (auto *Block : SubRegion) {
720-
LLVM_DEBUG(dbgs()
721-
<< " contains cold block:" << Block->getName() << "\n");
722-
}
719+
LLVM_DEBUG({
720+
for (auto *Block : SubRegion)
721+
dbgs() << " contains cold block:" << Block->getName() << "\n";
722+
});
723723

724724
OutliningWorklist.emplace_back(
725725
std::make_pair(SubRegion[0], std::move(CE)));
@@ -748,6 +748,7 @@ bool HotColdSplitting::outlineColdRegions(Function &F, bool HasProfileSummary) {
748748
Function *Outlined =
749749
extractColdRegion(*BCE.first, BCE.second, CEAC, BFI, TTI, ORE);
750750
assert(Outlined && "Should be outlined");
751+
(void)Outlined;
751752
}
752753

753754
return true;

0 commit comments

Comments
 (0)