Skip to content

Commit 8c82ee2

Browse files
committed
[CIR] Honor -clangir-disable-verifier while printing
1 parent 483b793 commit 8c82ee2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CIR/FrontendAction/CIRGenAction.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ class CIRGenConsumer : public clang::ASTConsumer {
264264
// FIXME: we cannot roundtrip prettyForm=true right now.
265265
mlir::OpPrintingFlags flags;
266266
flags.enableDebugInfo(/*enable=*/true, /*prettyForm=*/false);
267+
if (feOptions.ClangIRDisableCIRVerifier)
268+
flags.assumeVerified();
267269
mlirMod->print(*outputStream, flags);
268270
}
269271
break;

0 commit comments

Comments
 (0)