From 898e4157cfe68c5fc19a272d063e202bd598cb22 Mon Sep 17 00:00:00 2001 From: rudy Date: Wed, 1 Dec 2021 15:09:58 +0100 Subject: [PATCH] fix(compiler): --compile should not output IR on stdin --- compiler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }