From f56443e138a9c1f81003404703cf36ad1ef6fedd Mon Sep 17 00:00:00 2001 From: Benjamin Chetioui <3920784+bchetioui@users.noreply.github.com> Date: Tue, 13 Aug 2024 12:05:15 +0200 Subject: [PATCH] [mlir][StorageUniquer] Restore old signature for default implementaion of verifyInvariants. (#103023) PR #102326 changed the prototype of the default implementation of verify to include emitErrorFn. This breaks automatic derivation in consumer attributes, such as https://github.com/tensorflow/runtime/blob/60277ba976739502e45ad26585e071568fa44af1/include/tfrt/core_runtime/opdefs/attributes.h#L53. This PR simply restores the signature to what it was prior to PR #102326. --- mlir/include/mlir/IR/StorageUniquerSupport.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mlir/include/mlir/IR/StorageUniquerSupport.h b/mlir/include/mlir/IR/StorageUniquerSupport.h index d6ccbbd85799479..2162a74a51580a8 100644 --- a/mlir/include/mlir/IR/StorageUniquerSupport.h +++ b/mlir/include/mlir/IR/StorageUniquerSupport.h @@ -226,9 +226,7 @@ class StorageUserBase : public BaseT, public Traits... { /// Default implementation that just returns success. template - static LogicalResult - verifyInvariants(function_ref emitErrorFn, - Args... args) { + static LogicalResult verifyInvariants(Args... args) { return success(); }