DI: Only DICompositeType has getElements(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 18:17:17 +0000 (18:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 18:17:17 +0000 (18:17 +0000)
commit6ac940db1981a3332ab1f167e46d43e3904e0a34
tree74483a719ef84b1eb80b62069900429ad3c14e35
parent0b0eeaaaf6a57845feb5814a75333895f36d6907
DI: Only DICompositeType has getElements(), NFC

There is an assertion inside `DICompositeTypeBase::getElements()` that
`this` is not a `DISubroutineType`, leaving only `DICompositeType`.
Make that clear at the call sites.

llvm-svn: 243134
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp