[Mlir-commits] [mlir] 0ec318e - Fix unused variable in "[mlir][PDL] Add support for native constraints with results (#82760)"

Matthias Gehre llvmlistbot at llvm.org
Sat Mar 2 15:01:23 PST 2024


Author: Matthias Gehre
Date: 2024-03-03T00:01:14+01:00
New Revision: 0ec318e57b0c7cbc0d9c899390daf3248cbe6a53

URL: https://github.com/llvm/llvm-project/commit/0ec318e57b0c7cbc0d9c899390daf3248cbe6a53
DIFF: https://github.com/llvm/llvm-project/commit/0ec318e57b0c7cbc0d9c899390daf3248cbe6a53.diff

LOG: Fix unused variable in "[mlir][PDL] Add support for native constraints with results (#82760)"

Added: 
    

Modified: 
    mlir/lib/Rewrite/ByteCode.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index 559ce7f466a83d..d2d9ec2787a281 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -1444,7 +1444,7 @@ void ByteCodeExecutor::executeApplyConstraint(PatternRewriter &rewriter) {
   const PDLRewriteFunction &constraintFn = constraintFunctions[fun_idx];
   ByteCodeRewriteResultList results(numResults);
   LogicalResult rewriteResult = constraintFn(rewriter, results, args);
-  ArrayRef<PDLValue> constraintResults = results.getResults();
+  [[maybe_unused]] ArrayRef<PDLValue> constraintResults = results.getResults();
   LLVM_DEBUG({
     if (succeeded(rewriteResult)) {
       llvm::dbgs() << "  * Constraint succeeded\n";


        


More information about the Mlir-commits mailing list