Skip to content

Commit 217f580

Browse files
[Analysis] Use a range-based for loop (NFC) (#104445)
1 parent dca8209 commit 217f580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6035,8 +6035,8 @@ Value *llvm::isBytewiseValue(Value *V, const DataLayout &DL) {
60356035

60366036
if (isa<ConstantAggregate>(C)) {
60376037
Value *Val = UndefInt8;
6038-
for (unsigned I = 0, E = C->getNumOperands(); I != E; ++I)
6039-
if (!(Val = Merge(Val, isBytewiseValue(C->getOperand(I), DL))))
6038+
for (Value *Op : C->operands())
6039+
if (!(Val = Merge(Val, isBytewiseValue(Op, DL))))
60406040
return nullptr;
60416041
return Val;
60426042
}

0 commit comments

Comments
 (0)