Skip to content

Commit 43ebf68

Browse files
committed
[CIR] Fix error messages when the conversion to MLIR standard dialects fails.
1 parent 5373f42 commit 43ebf68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/CIR/Lowering/ThroughMLIR/LowerCIRToMLIR.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,11 +1505,12 @@ mlir::ModuleOp lowerFromCIRToMLIR(mlir::ModuleOp theModule,
15051505
auto result = !mlir::failed(pm.run(theModule));
15061506
if (!result)
15071507
report_fatal_error(
1508-
"The pass manager failed to lower CIR to LLVMIR dialect!");
1508+
"The pass manager failed to lower CIR to MLIR standard dialects!");
15091509

15101510
// Now that we ran all the lowering passes, verify the final output.
15111511
if (theModule.verify().failed())
1512-
report_fatal_error("Verification of the final LLVMIR dialect failed!");
1512+
report_fatal_error(
1513+
"Verification of the final MLIR in standard dialects failed!");
15131514

15141515
return theModule;
15151516
}

0 commit comments

Comments
 (0)