Reapply commit 112699, speculatively reverted by echristo, since
authorDuncan Sands <baldrick@free.fr>
Thu, 2 Sep 2010 08:14:03 +0000 (08:14 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 2 Sep 2010 08:14:03 +0000 (08:14 +0000)
commitfc6e29d4ab52b7d3efd83846ed495a9ca7e51e49
tree2c7b45b801ac9fe4f25bc94ce67befd03d605726
parent4315093eb76b8806fed72273f0909d68645f12d3
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
include/llvm/Transforms/Utils/SSAUpdater.h
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Scalar/JumpThreading.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Scalar/LoopRotation.cpp
lib/Transforms/Utils/LCSSA.cpp
lib/Transforms/Utils/SSAUpdater.cpp