mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Reapply commit 112699, speculatively reverted by echristo, since
I'm sure it is harmless. Original commit message: If PrototypeValue is erased in the middle of using the SSAUpdator then the SSAUpdator may access freed memory. Instead, simply pass in the type and name explicitly, which is all that was used anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -206,7 +206,7 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
|
||||
DomTreeNode *DomNode = DT->getNode(DomBB);
|
||||
|
||||
SSAUpdater SSAUpdate;
|
||||
SSAUpdate.Initialize(Inst);
|
||||
SSAUpdate.Initialize(Inst->getType(), Inst->getName());
|
||||
|
||||
// Insert the LCSSA phi's into all of the exit blocks dominated by the
|
||||
// value, and add them to the Phi's map.
|
||||
|
Reference in New Issue
Block a user