]> granicus.if.org Git - clang/commit
Fix undefined behavior in debug info emission: operator* on WeakVH returns a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Aug 2012 04:17:54 +0000 (04:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 Aug 2012 04:17:54 +0000 (04:17 +0000)
commite7259aad3fc6db0c9add85d486cafa6eeb53585d
tree785fac0565074d1be4698f796dab2727f2b8bbf5
parenteae57a65fe6467f982266420b5619bea5a622315
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
lib/CodeGen/CGDebugInfo.cpp