Skip to content

Commit 3a33970

Browse files
committed
CodeGen: Rename a variable to better fit LLVM style. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279159 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 45689e2 commit 3a33970

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/CodeGen/CGCall.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
24682468
// result is in a BasicBlock and is therefore an Instruction.
24692469
llvm::Instruction *generator = cast<llvm::Instruction>(result);
24702470

2471-
SmallVector<llvm::Instruction*,4> insnsToKill;
2471+
SmallVector<llvm::Instruction *, 4> InstsToKill;
24722472

24732473
// Look for:
24742474
// %generator = bitcast %type1* %generator2 to %type2*
@@ -2481,7 +2481,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
24812481
if (generator->getNextNode() != bitcast)
24822482
return nullptr;
24832483

2484-
insnsToKill.push_back(bitcast);
2484+
InstsToKill.push_back(bitcast);
24852485
}
24862486

24872487
// Look for:
@@ -2514,25 +2514,25 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
25142514
assert(isa<llvm::CallInst>(prev));
25152515
assert(cast<llvm::CallInst>(prev)->getCalledValue() ==
25162516
CGF.CGM.getObjCEntrypoints().retainAutoreleasedReturnValueMarker);
2517-
insnsToKill.push_back(prev);
2517+
InstsToKill.push_back(prev);
25182518
}
25192519
} else {
25202520
return nullptr;
25212521
}
25222522

25232523
result = call->getArgOperand(0);
2524-
insnsToKill.push_back(call);
2524+
InstsToKill.push_back(call);
25252525

25262526
// Keep killing bitcasts, for sanity. Note that we no longer care
25272527
// about precise ordering as long as there's exactly one use.
25282528
while (llvm::BitCastInst *bitcast = dyn_cast<llvm::BitCastInst>(result)) {
25292529
if (!bitcast->hasOneUse()) break;
2530-
insnsToKill.push_back(bitcast);
2530+
InstsToKill.push_back(bitcast);
25312531
result = bitcast->getOperand(0);
25322532
}
25332533

25342534
// Delete all the unnecessary instructions, from latest to earliest.
2535-
for (auto *I : insnsToKill)
2535+
for (auto *I : InstsToKill)
25362536
I->eraseFromParent();
25372537

25382538
// Do the fused retain/autorelease if we were asked to.

0 commit comments

Comments
 (0)