mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[NFC] Remove shadowed variable in InnerLoopVectorizer::createInductionVariable
Avoid creating a IRBuilder stack variable with the same name as the class member.
This commit is contained in:
parent
bb669b7109
commit
2bd098b59e
@ -3071,7 +3071,9 @@ PHINode *InnerLoopVectorizer::createInductionVariable(Loop *L, Value *Start,
|
||||
if (!Latch)
|
||||
Latch = Header;
|
||||
|
||||
IRBuilder<> Builder(&*Header->getFirstInsertionPt());
|
||||
IRBuilder<>::InsertPointGuard Guard(Builder);
|
||||
Builder.SetInsertPoint(&*Header->getFirstInsertionPt());
|
||||
|
||||
Instruction *OldInst = getDebugLocFromInstOrOperands(OldInduction);
|
||||
setDebugLocFromInst(Builder, OldInst);
|
||||
auto *Induction = Builder.CreatePHI(Start->getType(), 2, "index");
|
||||
|
Loading…
x
Reference in New Issue
Block a user