aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
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