Skip to content

Commit e6f98ff

Browse files
CheskaqiqiShuqi911
andauthored
Fix variable naming style in PPCBoolRetToInt.cpp (#144533)
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 Co-authored-by: Shuqi Liang <[email protected]>
1 parent 3095d3a commit e6f98ff

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

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

260260
Value *IntRetVal = BoolToIntMap[U];

0 commit comments

Comments
 (0)