summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-09-02 08:14:03 +0000
committerDuncan Sands <baldrick@free.fr>2010-09-02 08:14:03 +0000
commit6778149f7e9550df48423d15bc8aa725d582962c (patch)
treef2ae4762157d62609c1f04ab6aba55f9b4bc5ec1 /llvm/lib/Transforms/Utils/LCSSA.cpp
parentd30f8ec11ee0b697c31197978a1f2e7cc0ad63ce (diff)
downloadbcm5719-llvm-6778149f7e9550df48423d15bc8aa725d582962c.tar.gz
bcm5719-llvm-6778149f7e9550df48423d15bc8aa725d582962c.zip
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. llvm-svn: 112810
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LCSSA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index 409b4bd9da8..275b26508f9 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -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.
OpenPOWER on IntegriCloud