Use range-based for loop to avoid the need for calculating an array size. NFC

llvm-svn: 254282
This commit is contained in:
Craig Topper 2015-11-30 03:11:12 +00:00
parent ac67c05a50
commit 9b2438f6d1
1 changed files with 1 additions and 4 deletions

View File

@ -825,10 +825,7 @@ private:
// * Variable x is equal to the largest literal.
// * Variable x is greater than largest literal.
bool AlwaysTrue = true, AlwaysFalse = true;
for (unsigned int ValueIndex = 0;
ValueIndex < sizeof(Values) / sizeof(Values[0]);
++ValueIndex) {
llvm::APSInt Value = Values[ValueIndex];
for (llvm::APSInt Value : Values) {
TryResult Res1, Res2;
Res1 = analyzeLogicOperatorCondition(BO1, Value, L1);
Res2 = analyzeLogicOperatorCondition(BO2, Value, L2);