We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbf716f commit aef3508Copy full SHA for aef3508
flang/lib/Frontend/FrontendActions.cpp
@@ -779,7 +779,7 @@ void CodeGenAction::executeAction() {
779
llvmModule->setDataLayout(tm->createDataLayout());
780
781
// Run LLVM's middle-end (i.e. the optimizer).
782
- runOptimizationPipeline(*os);
+ runOptimizationPipeline(ci.isOutputStreamNull() ? *os : ci.getOutputStream());
783
784
if (action == BackendActionTy::Backend_EmitLL) {
785
llvmModule->print(ci.isOutputStreamNull() ? *os : ci.getOutputStream(),
0 commit comments