Skip to content

Commit 2d59eb1

Browse files
committed
re-add assert
1 parent 5b9bb0c commit 2d59eb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/include/mlir/Bindings/Python/Diagnostics.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CollectDiagnosticsToStringScope {
3030
/*deleteUserData=*/nullptr);
3131
}
3232
~CollectDiagnosticsToStringScope() {
33+
assert(message.empty() && "unchecked error message");
3334
mlirContextDetachDiagnosticHandler(context, handlerID);
3435
}
3536

0 commit comments

Comments
 (0)