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 h,cpp --
flang-rt/include/flang-rt/runtime/trampoline.h
flang-rt/lib/runtime/trampoline.cpp
flang/include/flang/Optimizer/Builder/Runtime/Trampoline.h
flang/include/flang/Runtime/trampoline.h
flang/lib/Optimizer/Builder/Runtime/Trampoline.cpp
clang/lib/Driver/ToolChains/Flang.cpp
flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
flang/include/flang/Optimizer/Passes/CommandLineOpts.h
flang/include/flang/Optimizer/Passes/Pipelines.h
flang/include/flang/Tools/CrossToolHelpers.h
flang/lib/Frontend/CompilerInvocation.cpp
flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
flang/lib/Optimizer/Passes/CommandLineOpts.cpp
flang/lib/Optimizer/Passes/Pipelines.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/trampoline.cpp
b/flang-rt/lib/runtime/trampoline.cpp
index 2029cfdcd..d16cdb0eb 100644
--- a/flang-rt/lib/runtime/trampoline.cpp
+++ b/flang-rt/lib/runtime/trampoline.cpp
@@ -377,8 +377,8 @@ private:
// Pad remaining with BRK #0 (trap) for safety.
std::size_t usedWords{4 + 2}; // 4 instructions + 1 quad (2 words)
- for (std::size_t w{usedWords};
- w < kTrampolineStubSize / sizeof(uint32_t); ++w) {
+ for (std::size_t w{usedWords}; w < kTrampolineStubSize /
sizeof(uint32_t);
+ ++w) {
stub[w] = 0xD4200000; // brk #0
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/183108
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits