[llvm] 7b5b521 - [DFAJumpThreading][NFC] Use const reference as range variable (#90342)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 27 06:55:57 PDT 2024
Author: XChy
Date: 2024-04-27T21:55:53+08:00
New Revision: 7b5b5214a6f905be67e3c2ecb9b4887eaa3406c3
URL: https://github.com/llvm/llvm-project/commit/7b5b5214a6f905be67e3c2ecb9b4887eaa3406c3
DIFF: https://github.com/llvm/llvm-project/commit/7b5b5214a6f905be67e3c2ecb9b4887eaa3406c3.diff
LOG: [DFAJumpThreading][NFC] Use const reference as range variable (#90342)
Fixes #90286
Added:
Modified:
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
index 14cdcc956aa5d7..ba2546b8db0e22 100644
--- a/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -553,7 +553,7 @@ struct AllSwitchPaths {
return;
}
- for (PathType Path : LoopPaths) {
+ for (const PathType &Path : LoopPaths) {
ThreadingPath TPath;
const BasicBlock *PrevBB = Path.back();
More information about the llvm-commits
mailing list