[mlir] Silence an unused variable warnings in builds without asserts.

This commit is contained in:
Adrian Kuegel
2025-05-21 08:46:49 +00:00
parent 5b5c57d322
commit 67489c7f0f

View File

@@ -1514,6 +1514,7 @@ void ByteCodeExecutor::processNativeFunResults(
// Store the results in the bytecode memory
for (unsigned resultIdx = 0; resultIdx < numResults; resultIdx++) {
PDLValue::Kind resultKind = read<PDLValue::Kind>();
(void)resultKind;
PDLValue result = results.getResults()[resultIdx];
LLVM_DEBUG(llvm::dbgs() << " * Result: " << result << "\n");
assert(result.getKind() == resultKind &&