Skip to content

Commit fa733c2

Browse files
committed
[mlir][StorageUniquer] Restore old signature for default implementation of verifyInvariants.
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.
1 parent b8bf14e commit fa733c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/include/mlir/IR/StorageUniquerSupport.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ class StorageUserBase : public BaseT, public Traits<ConcreteT>... {
227227
/// Default implementation that just returns success.
228228
template <typename... Args>
229229
static LogicalResult
230-
verifyInvariants(function_ref<InFlightDiagnostic()> emitErrorFn,
231-
Args... args) {
230+
verifyInvariants(Args... args) {
232231
return success();
233232
}
234233

0 commit comments

Comments
 (0)