[flang-commits] [flang] [llvm] [flang][MIF] Adding Stop and ErrorStop operations (PR #166787)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 27 05:26:55 PST 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- flang-rt/include/flang-rt/runtime/terminator.h flang-rt/lib/runtime/main.cpp flang-rt/lib/runtime/stop.cpp flang-rt/lib/runtime/terminator.cpp flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h flang/include/flang/Runtime/stop.h flang/lib/Lower/Runtime.cpp flang/lib/Optimizer/Builder/Runtime/Main.cpp flang/lib/Optimizer/Transforms/MIFOpConversion.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang-rt/lib/runtime/terminator.cpp b/flang-rt/lib/runtime/terminator.cpp
index 596981c6c..e8d642239 100644
--- a/flang-rt/lib/runtime/terminator.cpp
+++ b/flang-rt/lib/runtime/terminator.cpp
@@ -105,9 +105,7 @@ void SetFailImageCallback(void (*callback)(void)) {
   failImageCallback = callback;
 }
 
-void SetErrorCallback(void (*callback)(int)) {
-  errorCallback = callback;
-}
+void SetErrorCallback(void (*callback)(int)) { errorCallback = callback; }
 
 [[noreturn]]
 void NormalExit(int exitCode) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/166787


More information about the flang-commits mailing list