commit | e7259aad3fc6db0c9add85d486cafa6eeb53585d | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Aug 17 04:17:54 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Aug 17 04:17:54 2012 +0000 |
tree | 785fac0565074d1be4698f796dab2727f2b8bbf5 | |
parent | eae57a65fe6467f982266420b5619bea5a622315 [diff] |
Fix undefined behavior in debug info emission: operator* on WeakVH returns a reference, so &* on an empty WeakVH binds a reference to a dereferenced null pointer. So don't do that; we have a perfectly good implicit conversion to Value*. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162079 91177308-0d34-0410-b5e6-96231b3b80d8