Skip to content

Commit 57e19e9

Browse files
committed
Fix variable naming style in PPCBoolRetToInt.cpp
Change loop variable 'i' to 'I' to conform to LLVM coding standards. Variable names should start with an upper case letter according to LLVM coding guidelines. Fixed locations: Lines 103-104: for loop variable and usage Lines 257-258: for loop variable and usage
1 parent e836223 commit 57e19e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class PPCBoolRetToInt : public FunctionPass {
100100
Value *Zero = Constant::getNullValue(IntTy);
101101
PHINode *Q =
102102
PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P->getIterator());
103-
for (unsigned i = 0; i < P->getNumOperands(); ++i)
104-
Q->addIncoming(Zero, P->getIncomingBlock(i));
103+
for (unsigned I = 0; I < P->getNumOperands(); ++I)
104+
Q->addIncoming(Zero, P->getIncomingBlock(I));
105105
return Q;
106106
}
107107

@@ -254,8 +254,8 @@ class PPCBoolRetToInt : public FunctionPass {
254254
// Operands of CallInst/Constant are skipped because they may not be Bool
255255
// type. For CallInst, their positions are defined by ABI.
256256
if (First && !isa<CallInst>(First) && !isa<Constant>(First))
257-
for (unsigned i = 0; i < First->getNumOperands(); ++i)
258-
Second->setOperand(i, BoolToIntMap[First->getOperand(i)]);
257+
for (unsigned I = 0; I < First->getNumOperands(); ++I)
258+
Second->setOperand(I, BoolToIntMap[First->getOperand(I)]);
259259
}
260260

261261
Value *IntRetVal = BoolToIntMap[U];

0 commit comments

Comments
 (0)