[Mlir-commits] [mlir] 00fb861 - [mlir][transform] Fix typo in TrackingListener

Matthias Springer llvmlistbot at llvm.org
Thu Mar 30 03:10:36 PDT 2023


Author: Matthias Springer
Date: 2023-03-30T12:09:36+02:00
New Revision: 00fb8610adbab7b5d74967bdb0c45a25cbca40de

URL: https://github.com/llvm/llvm-project/commit/00fb8610adbab7b5d74967bdb0c45a25cbca40de
DIFF: https://github.com/llvm/llvm-project/commit/00fb8610adbab7b5d74967bdb0c45a25cbca40de.diff

LOG: [mlir][transform] Fix typo in TrackingListener

This was an oversight in D147206. The function should not have been made
`const` (just like the other `notify...` functions).

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Transform/IR/TransformOps.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Transform/IR/TransformOps.h b/mlir/include/mlir/Dialect/Transform/IR/TransformOps.h
index eb55f7f133e9..0443e3a9f2c3 100644
--- a/mlir/include/mlir/Dialect/Transform/IR/TransformOps.h
+++ b/mlir/include/mlir/Dialect/Transform/IR/TransformOps.h
@@ -54,7 +54,7 @@ class TrackingListener : public RewriterBase::Listener,
   /// replacement op was found. Derived classes can implement this function for
   /// custom error handling.
   virtual void notifyPayloadReplacementNotFound(Operation *op,
-                                                ValueRange values) const {}
+                                                ValueRange values) {}
 
   /// Return "true" if the given op is a new op.
   bool isNewOp(Operation *op) const;


        


More information about the Mlir-commits mailing list