It's possible for a global variable to be optimized out of a metadata object. So
authorBill Wendling <isanbard@gmail.com>
Thu, 8 Oct 2009 20:52:51 +0000 (20:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 8 Oct 2009 20:52:51 +0000 (20:52 +0000)
commit26c6cf4cecfffcb908cc6afe01d25fab5c88df43
tree258fe4fbda56dc9f3bee88cf5774b0af33b35e22
parent632606c724ebcfa6a9da71c443151e7a65829c99
It's possible for a global variable to be optimized out of a metadata object. So
we should allow a "null" with this dyn_cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DebugInfo.cpp
test/DebugInfo/2009-10-08-DebugInfo-NullGlobalVariable.ll [new file with mode: 0644]