mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[SROA] Rather than copying the logic for building a name prefix into the
PHI-pointer builder, just copy the builder and clobber the obvious fields. llvm-svn: 202136
This commit is contained in:
parent
4ced299134
commit
ea27d3f4fc
@ -2649,9 +2649,9 @@ private:
|
||||
// as local as possible to the PHI. To do that, we re-use the location of
|
||||
// the old pointer, which necessarily must be in the right position to
|
||||
// dominate the PHI.
|
||||
IRBuilderTy PtrBuilder(OldPtr);
|
||||
PtrBuilder.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) +
|
||||
".");
|
||||
IRBuilderTy PtrBuilder(IRB);
|
||||
PtrBuilder.SetInsertPoint(OldPtr);
|
||||
PtrBuilder.SetCurrentDebugLocation(OldPtr->getDebugLoc());
|
||||
|
||||
Value *NewPtr =
|
||||
getAdjustedAllocaPtr(PtrBuilder, BeginOffset, OldPtr->getType());
|
||||
|
Loading…
Reference in New Issue
Block a user