DwarfDebug: Check for null DebugLocs
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:37:03 +0000 (19:37 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:37:03 +0000 (19:37 +0000)
commitc128839d6c9dc7abfe2531915454d7d6af225855
treeb349d1396de1edd33a78d4f7ccc1095ca60a1944
parentd94d5bbbf91589aafbf9c902f3839d3a51db6484
DwarfDebug: Check for null DebugLocs

`DL` might be null, so check for that before using accessors.  A WIP
patch to make `DIDescriptors` more strict fails otherwise.

As a bonus, I think the logic is easier to follow now (despite the extra
nesting depth).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp