DebugInfoFinder: Check for null imported entities
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:13:53 +0000 (19:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:13:53 +0000 (19:13 +0000)
commitc867853c90e82250e3dbf35d9ce8a1ab4c331ab4
tree1ba97c08f364fe3d18d65eef75b6449971658ab4
parent14d8dbd37d06d880f010662613d501ec32c4c121
DebugInfoFinder: Check for null imported entities

Don't use the accessors in `DIImportedEntity` on a null pointer.  (A WIP
patch to make `DIDescriptor` accessors more strict crashes here
otherwise.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/DebugInfo.cpp