Skip to content

Commit b89285e

Browse files
committed
Address feedback
1 parent 7c8dcd0 commit b89285e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5734,8 +5734,8 @@ findContiguousCases(Value *Condition, SmallVectorImpl<ConstantInt *> &Cases,
57345734
assert(Cases.size() >= 1);
57355735

57365736
array_pod_sort(Cases.begin(), Cases.end(), constantIntSortPredicate);
5737-
APInt Min = Cases.back()->getValue();
5738-
APInt Max = Cases.front()->getValue();
5737+
const APInt &Min = Cases.back()->getValue();
5738+
const APInt &Max = Cases.front()->getValue();
57395739
APInt Offset = Max - Min;
57405740
size_t ContiguousOffset = Cases.size() - 1;
57415741
if (Offset == ContiguousOffset) {

0 commit comments

Comments
 (0)