forked from OSchip/llvm-project
Use range-based for loop to avoid the need for calculating an array size. NFC
llvm-svn: 254282
This commit is contained in:
parent
ac67c05a50
commit
9b2438f6d1
|
@ -825,10 +825,7 @@ private:
|
||||||
// * Variable x is equal to the largest literal.
|
// * Variable x is equal to the largest literal.
|
||||||
// * Variable x is greater than largest literal.
|
// * Variable x is greater than largest literal.
|
||||||
bool AlwaysTrue = true, AlwaysFalse = true;
|
bool AlwaysTrue = true, AlwaysFalse = true;
|
||||||
for (unsigned int ValueIndex = 0;
|
for (llvm::APSInt Value : Values) {
|
||||||
ValueIndex < sizeof(Values) / sizeof(Values[0]);
|
|
||||||
++ValueIndex) {
|
|
||||||
llvm::APSInt Value = Values[ValueIndex];
|
|
||||||
TryResult Res1, Res2;
|
TryResult Res1, Res2;
|
||||||
Res1 = analyzeLogicOperatorCondition(BO1, Value, L1);
|
Res1 = analyzeLogicOperatorCondition(BO1, Value, L1);
|
||||||
Res2 = analyzeLogicOperatorCondition(BO2, Value, L2);
|
Res2 = analyzeLogicOperatorCondition(BO2, Value, L2);
|
||||||
|
|
Loading…
Reference in New Issue