@@ -2468,7 +2468,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
2468
2468
// result is in a BasicBlock and is therefore an Instruction.
2469
2469
llvm::Instruction *generator = cast<llvm::Instruction>(result);
2470
2470
2471
- SmallVector<llvm::Instruction*, 4 > insnsToKill ;
2471
+ SmallVector<llvm::Instruction *, 4 > InstsToKill ;
2472
2472
2473
2473
// Look for:
2474
2474
// %generator = bitcast %type1* %generator2 to %type2*
@@ -2481,7 +2481,7 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
2481
2481
if (generator->getNextNode () != bitcast)
2482
2482
return nullptr ;
2483
2483
2484
- insnsToKill .push_back (bitcast);
2484
+ InstsToKill .push_back (bitcast);
2485
2485
}
2486
2486
2487
2487
// Look for:
@@ -2514,25 +2514,25 @@ static llvm::Value *tryEmitFusedAutoreleaseOfResult(CodeGenFunction &CGF,
2514
2514
assert (isa<llvm::CallInst>(prev));
2515
2515
assert (cast<llvm::CallInst>(prev)->getCalledValue () ==
2516
2516
CGF.CGM .getObjCEntrypoints ().retainAutoreleasedReturnValueMarker );
2517
- insnsToKill .push_back (prev);
2517
+ InstsToKill .push_back (prev);
2518
2518
}
2519
2519
} else {
2520
2520
return nullptr ;
2521
2521
}
2522
2522
2523
2523
result = call->getArgOperand (0 );
2524
- insnsToKill .push_back (call);
2524
+ InstsToKill .push_back (call);
2525
2525
2526
2526
// Keep killing bitcasts, for sanity. Note that we no longer care
2527
2527
// about precise ordering as long as there's exactly one use.
2528
2528
while (llvm::BitCastInst *bitcast = dyn_cast<llvm::BitCastInst>(result)) {
2529
2529
if (!bitcast->hasOneUse ()) break ;
2530
- insnsToKill .push_back (bitcast);
2530
+ InstsToKill .push_back (bitcast);
2531
2531
result = bitcast->getOperand (0 );
2532
2532
}
2533
2533
2534
2534
// Delete all the unnecessary instructions, from latest to earliest.
2535
- for (auto *I : insnsToKill )
2535
+ for (auto *I : InstsToKill )
2536
2536
I->eraseFromParent ();
2537
2537
2538
2538
// Do the fused retain/autorelease if we were asked to.
0 commit comments