[llvm] [DFAJumpThreading][NFC] Use const reference as range variable (PR #90342)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 27 06:00:23 PDT 2024
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 b5e8555607ed39816dd05e8b6fafa2774305e825 8084544a63f449c59635d6f31888f2b12ba293b9 -- llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index fe5eeb1dcd..ba2546b8db 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -553,7 +553,7 @@ struct AllSwitchPaths {
return;
}
- for (const PathType& Path : LoopPaths) {
+ for (const PathType &Path : LoopPaths) {
ThreadingPath TPath;
const BasicBlock *PrevBB = Path.back();
``````````
</details>
https://github.com/llvm/llvm-project/pull/90342
More information about the llvm-commits
mailing list