From 57e19e94cef6361499fd08025df29e7a67ccaf59 Mon Sep 17 00:00:00 2001 From: Shuqi Liang Date: Tue, 17 Jun 2025 10:27:16 -0400 Subject: [PATCH] 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 --- llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp b/llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp index 47bb20f4aa073..295b26993099e 100644 --- a/llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp +++ b/llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp @@ -100,8 +100,8 @@ class PPCBoolRetToInt : public FunctionPass { Value *Zero = Constant::getNullValue(IntTy); PHINode *Q = PHINode::Create(IntTy, P->getNumIncomingValues(), P->getName(), P->getIterator()); - for (unsigned i = 0; i < P->getNumOperands(); ++i) - Q->addIncoming(Zero, P->getIncomingBlock(i)); + for (unsigned I = 0; I < P->getNumOperands(); ++I) + Q->addIncoming(Zero, P->getIncomingBlock(I)); return Q; } @@ -254,8 +254,8 @@ class PPCBoolRetToInt : public FunctionPass { // Operands of CallInst/Constant are skipped because they may not be Bool // type. For CallInst, their positions are defined by ABI. if (First && !isa(First) && !isa(First)) - for (unsigned i = 0; i < First->getNumOperands(); ++i) - Second->setOperand(i, BoolToIntMap[First->getOperand(i)]); + for (unsigned I = 0; I < First->getNumOperands(); ++I) + Second->setOperand(I, BoolToIntMap[First->getOperand(I)]); } Value *IntRetVal = BoolToIntMap[U];