If PrototypeValue is erased in the middle of using the SSAUpdator
authorDuncan Sands <baldrick@free.fr>
Wed, 1 Sep 2010 10:29:33 +0000 (10:29 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 1 Sep 2010 10:29:33 +0000 (10:29 +0000)
commit4d588bceb035589ade874f432d70a41bb7ec6273
treeb146e38731affa01ddc2147fcde8b1caea7657f2
parent248e7592b5d7ccba5def625300960a00dddd6e55
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@112699 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