Skip to content

Commit c18c3cc

Browse files
committed
Fix unused variable warning in release build
1 parent 986e0fe commit c18c3cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,8 @@ Value *HvxIdioms::processVScatter(Instruction &In) const {
21632163
// Our indexes are represented as a constant. We need it in a reg.
21642164
AllocaInst *IndexesAlloca =
21652165
Builder.CreateAlloca(HVC.getHvxTy(HVC.getIntTy(32), false));
2166-
auto *StoreIndexes = Builder.CreateStore(cstDataVector, IndexesAlloca);
2166+
[[maybe_unused]] auto *StoreIndexes =
2167+
Builder.CreateStore(cstDataVector, IndexesAlloca);
21672168
LLVM_DEBUG(dbgs() << " StoreIndexes : " << *StoreIndexes << "\n");
21682169
CastIndex = Builder.CreateLoad(IndexesAlloca->getAllocatedType(),
21692170
IndexesAlloca, "reload_index");

0 commit comments

Comments
 (0)