From: Justin Bogner Date: Thu, 18 Aug 2016 21:46:54 +0000 (+0000) Subject: CodeGen: Rename a variable to better fit LLVM style. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a3397041c98d13bc6841119984dddfad899921d;p=clang 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 --- diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 7e06fefd99..94261bf315 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -2468,7 +2468,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF, // result is in a BasicBlock and is therefore an Instruction. llvm::Instruction *generator = cast(result); - SmallVector insnsToKill; + SmallVector InstsToKill; // Look for: // %generator = bitcast %type1* %generator2 to %type2* @@ -2481,7 +2481,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF, if (generator->getNextNode() != bitcast) return nullptr; - insnsToKill.push_back(bitcast); + InstsToKill.push_back(bitcast); } // Look for: @@ -2514,25 +2514,25 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF, assert(isa(prev)); assert(cast(prev)->getCalledValue() == CGF.CGM.getObjCEntrypoints().retainAutoreleasedReturnValueMarker); - insnsToKill.push_back(prev); + InstsToKill.push_back(prev); } } else { return nullptr; } result = call->getArgOperand(0); - insnsToKill.push_back(call); + InstsToKill.push_back(call); // Keep killing bitcasts, for sanity. Note that we no longer care // about precise ordering as long as there's exactly one use. while (llvm::BitCastInst *bitcast = dyn_cast(result)) { if (!bitcast->hasOneUse()) break; - insnsToKill.push_back(bitcast); + InstsToKill.push_back(bitcast); result = bitcast->getOperand(0); } // Delete all the unnecessary instructions, from latest to earliest. - for (auto *I : insnsToKill) + for (auto *I : InstsToKill) I->eraseFromParent(); // Do the fused retain/autorelease if we were asked to.