Skip to content

Commit 6eabc73

Browse files
committed
Update cir-opt return code handling
1 parent 945b7c5 commit 6eabc73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/cir-opt/cir-opt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ int main(int argc, char **argv) {
4141

4242
mlir::registerTransformsPasses();
4343

44-
return failed(MlirOptMain(
44+
return mlir::asMainReturnCode(MlirOptMain(
4545
argc, argv, "Clang IR analysis and optimization tool\n", registry));
4646
}

0 commit comments

Comments
 (0)