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)
commit23e56ecf26e8a69efa6dc16aaaad959833c30ef5
tree0d4d30e122eb9f0699bf176e5b47264bf87e805c
parentbdfbde56e03a328f45c8f25dbb1a5b6f6361265b
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).

llvm-svn: 232838
llvm/lib/CodeGen/AsmPrinter/WinCodeViewLineTables.cpp