diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 04:17:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 04:17:54 +0000 |
commit | e7259aad3fc6db0c9add85d486cafa6eeb53585d (patch) | |
tree | 785fac0565074d1be4698f796dab2727f2b8bbf5 /lib/Sema/SemaDecl.cpp | |
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
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions