Skip to content

Commit 9b1396d

Browse files
committed
[MLIR] Restore dropped error message to fix test failures from PR llvm#160331
PR llvm#160331 introduced a mistake that removed the error message for generate-runtime-verification pass, leading to two test failures during `check-mlir` build. This patch restores the missing error message, resolving the failures. Verified locally. Fixes post-merge regression from: llvm#160331
1 parent c3aa158 commit 9b1396d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mlir/lib/Transforms/GenerateRuntimeVerification.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ class DefaultErrMsgGenerator {
5151
stream << "ERROR: Runtime op verification failed\n";
5252
if (vLevel == 1) {
5353
op->print(stream, state);
54-
stream << "\n";
54+
stream << "\n^ " << msg;
55+
stream << "\nLocation: ";
56+
} else{
57+
stream << "^\nLocation: ";
5558
}
56-
stream << "^\nLocation: ";
5759
op->getLoc().print(stream);
5860
return buffer;
5961
}

0 commit comments

Comments
 (0)