Skip to content

Commit e7ec5fd

Browse files
committed
enable --verify-each option
1 parent 26b1eba commit e7ec5fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/API/api.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ compile_(int argc, char const **argv, std::string *outputString,
561561
mlir::applyPassManagerCLOptions(pm);
562562
mlir::applyDefaultTimingPassManagerCLOptions(pm);
563563

564+
// Enable verifier (default: true)
565+
pm.enableVerifier(verifyPasses);
566+
564567
// Build the configuration for this compilation event.
565568
auto configResult = buildConfig_(&context);
566569
if (auto err = configResult.takeError())

0 commit comments

Comments
 (0)