Fix PR8313 by changing ValueToValueMap use a TrackingVH.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2010-10-13 02:08:17 +00:00
parent 14ce175216
commit 6688c4a742
3 changed files with 15 additions and 9 deletions

View File

@ -20,7 +20,7 @@
namespace llvm {
class Value;
class Instruction;
typedef ValueMap<const Value *, Value *> ValueToValueMapTy;
typedef ValueMap<const Value *, TrackingVH<Value> > ValueToValueMapTy;
Value *MapValue(const Value *V, ValueToValueMapTy &VM,
bool ModuleLevelChanges);