Skip to content

Conversation

@jeanPerier
Copy link
Contributor

No description provided.

@llvmbot llvmbot added flang Flang issues not falling into any other category flang:fir-hlfir labels Nov 21, 2025
@jeanPerier
Copy link
Contributor Author

@sathvikreddy853 FYI, thanks for noticing it.

@llvmbot
Copy link
Member

llvmbot commented Nov 21, 2025

@llvm/pr-subscribers-flang-fir-hlfir

Author: None (jeanPerier)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/169050.diff

1 Files Affected:

  • (modified) flang/lib/Lower/Runtime.cpp (+1-2)
diff --git a/flang/lib/Lower/Runtime.cpp b/flang/lib/Lower/Runtime.cpp
index d5b8045d91992..9ff6157f7487d 100644
--- a/flang/lib/Lower/Runtime.cpp
+++ b/flang/lib/Lower/Runtime.cpp
@@ -90,8 +90,7 @@ void Fortran::lower::genStopStatement(
           operands.push_back(cast);
         },
         [&](auto) {
-          mlir::emitError(loc, "unhandled expression in STOP");
-          std::exit(1);
+          fir::emitFatalError(loc, "unhandled expression in STOP");
         });
   } else {
     callee = fir::runtime::getRuntimeFunc<mkRTKey(StopStatement)>(loc, builder);

@github-actions
Copy link

🐧 Linux x64 Test Results

  • 4073 tests passed
  • 202 tests skipped

@jeanPerier jeanPerier merged commit 76a6816 into llvm:main Nov 21, 2025
11 of 12 checks passed
@jeanPerier jeanPerier deleted the nfc_runtime branch November 21, 2025 15:48
aadeshps-mcw pushed a commit to aadeshps-mcw/llvm-project that referenced this pull request Nov 26, 2025
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:fir-hlfir flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants