Skip to content

Commit 509fba7

Browse files
committed
[llvm] Fix unused variable in non-debug configurations
1 parent 675431b commit 509fba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/ARM/MVETailPredication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ bool MVETailPredication::IsSafeActiveMask(IntrinsicInst *ActiveLaneMask,
435435
// Ceil = ElementCount + (VW-1) / VW
436436
auto *Ceil = SE->getUDivExpr(ECPlusVWMinus1, VW);
437437

438+
// Prevent unused variable warnings with TC
439+
(void)TC;
438440
LLVM_DEBUG(
439441
dbgs() << "ARM TP: Analysing overflow behaviour for:\n";
440442
dbgs() << "ARM TP: - TripCount = "; TC->dump();

0 commit comments

Comments
 (0)