Skip to content

Commit 67489c7

Browse files
committed
[mlir] Silence an unused variable warnings in builds without asserts.
1 parent 5b5c57d commit 67489c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Rewrite/ByteCode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,7 @@ void ByteCodeExecutor::processNativeFunResults(
15141514
// Store the results in the bytecode memory
15151515
for (unsigned resultIdx = 0; resultIdx < numResults; resultIdx++) {
15161516
PDLValue::Kind resultKind = read<PDLValue::Kind>();
1517+
(void)resultKind;
15171518
PDLValue result = results.getResults()[resultIdx];
15181519
LLVM_DEBUG(llvm::dbgs() << " * Result: " << result << "\n");
15191520
assert(result.getKind() == resultKind &&

0 commit comments

Comments
 (0)