[mlir] Silence an unused variable warnings in builds without asserts.
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user