]> granicus.if.org Git - clang/commit
DebugInfo: Check for null before using DIType
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 00:53:40 +0000 (00:53 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 00:53:40 +0000 (00:53 +0000)
commitad019c87dca2251507bc79434776493497acae84
treea2eaff55a4d1c9286ea38ab5cf5bebf212b7262e
parent79bcca264727c3ea84124b6bf7dfd3c7c05ad92b
DebugInfo: Check for null before using DIType

A WIP patch to turn on stricter `DIDescriptor` accessor checks fires
here; it's obvious from the code that `T` can be null, so add an
explicit check.  Caught by dozens of current testcases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232791 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp