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)
commita012f0dcc44c9ed8d5ca88320cea07e24baab93b
treee4073442e6ecad26ed1b6a8ce90f90bb88cfde18
parent56cf65b377af2042dd8ceaa495b65800e432f6ee
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.

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