fix(compiler): --compile should not output IR on stdin

This commit is contained in:
rudy
2021-12-01 15:09:58 +01:00
committed by Quentin Bourgerie
parent 693a12dce4
commit 898e4157cf

View File

@@ -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);
}
}