AsmPrinter: Check subprogram before using it
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:50:00 +0000 (19:50 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Mar 2015 19:50:00 +0000 (19:50 +0000)
commit214538864da1076802416e129a8264b39621ba4c
tree8ef985fa3eae641c4f4fe066c84b18c0c38c058b
parent82759c6cacf861a18b9d362ab6dc766573a1ce2d
AsmPrinter: Check subprogram before using it

Check return of `getDISubprogram()` before using it.  A WIP patch makes
`DIDescriptor` accessors more strict (and would crash on this).

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