diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 02:08:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-10-13 02:08:17 +0000 |
commit | 6688c4a742b3d4ad511e35b463c2fe0f8abc04ab (patch) | |
tree | 317596b50503531c08733049e3b4a33bebb6db94 /include/llvm/Transforms/Utils/ValueMapper.h | |
parent | 14ce175216c452996ce9af04aa5749cb3c2c31dc (diff) | |
download | external_llvm-6688c4a742b3d4ad511e35b463c2fe0f8abc04ab.zip external_llvm-6688c4a742b3d4ad511e35b463c2fe0f8abc04ab.tar.gz external_llvm-6688c4a742b3d4ad511e35b463c2fe0f8abc04ab.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Transforms/Utils/ValueMapper.h')
-rw-r--r-- | include/llvm/Transforms/Utils/ValueMapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/ValueMapper.h b/include/llvm/Transforms/Utils/ValueMapper.h index 5274112..dd320a3 100644 --- a/include/llvm/Transforms/Utils/ValueMapper.h +++ b/include/llvm/Transforms/Utils/ValueMapper.h @@ -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); |