aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-27 21:21:02 -0700
committerKazu Hirata <kazu@google.com>2022-08-27 21:21:02 -0700
commit56ea4f9bd3d6c44f95f9b7b8639c9db043448742 (patch)
tree12c00022b185f6db02177da719d47291994f3fdc /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent33b93044352fae09376b7d71ce6f2441a34f343d (diff)
downloadllvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.zip
llvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.tar.gz
llvm-56ea4f9bd3d6c44f95f9b7b8639c9db043448742.tar.bz2
[Transforms] Qualify auto in range-based for loops (NFC)
Identified with readability-qualified-auto.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 7f2fb10..0dab4f4 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -5684,13 +5684,13 @@ static Value *foldSwitchToSelect(const SwitchCaseResultVectorTy &ResultVector,
if (isPowerOf2_32(CaseCount)) {
ConstantInt *MinCaseVal = CaseValues[0];
// Find mininal value.
- for (auto Case : CaseValues)
+ for (auto *Case : CaseValues)
if (Case->getValue().slt(MinCaseVal->getValue()))
MinCaseVal = Case;
// Mark the bits case number touched.
APInt BitMask = APInt::getZero(MinCaseVal->getBitWidth());
- for (auto Case : CaseValues)
+ for (auto *Case : CaseValues)
BitMask |= (Case->getValue() - MinCaseVal->getValue());
// Check if cases with the same result can cover all number