[Mlir-commits] [mlir] 67489c7 - [mlir] Silence an unused variable warnings in builds without asserts.

Adrian Kuegel llvmlistbot at llvm.org
Wed May 21 01:48:02 PDT 2025


Author: Adrian Kuegel
Date: 2025-05-21T08:47:42Z
New Revision: 67489c7f0f7badc249cd18805ea1ce4caa7b5ee5

URL: https://github.com/llvm/llvm-project/commit/67489c7f0f7badc249cd18805ea1ce4caa7b5ee5
DIFF: https://github.com/llvm/llvm-project/commit/67489c7f0f7badc249cd18805ea1ce4caa7b5ee5.diff

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

Added: 
    

Modified: 
    mlir/lib/Rewrite/ByteCode.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index 83940edffa4c2..5939d0d00d328 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -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 &&


        


More information about the Mlir-commits mailing list