diff --git a/compiler/src/main.cpp b/compiler/src/main.cpp index e08fd60c6..13ccca867 100644 --- a/compiler/src/main.cpp +++ b/compiler/src/main.cpp @@ -320,7 +320,7 @@ mlir::LogicalResult processInputBuffer( } else if (action == Action::DUMP_LLVM_IR || action == Action::DUMP_OPTIMIZED_LLVM_IR) { retOrErr->llvmModule->print(os, nullptr); - } else { + } else if (action != Action::COMPILE) { retOrErr->mlirModuleRef->get().print(os); } }