[codeview] Don't assert if the array element type is incomplete
authorReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 17:29:36 +0000 (17:29 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 9 Sep 2016 17:29:36 +0000 (17:29 +0000)
commit1076288e2254367d61be891eb16d854919c702e8
tree52742ab6f222fdb966f19a232d35cc42e20e16cd
parente32490933eb5c3e12339e3f1046601c1dd99138a
[codeview] Don't assert if the array element type is incomplete

This can happen when the frontend knows the debug info will be emitted
somewhere else. Usually this happens for dynamic classes with out of
line constructors or key functions, but it can also happen when modules
are enabled.

llvm-svn: 281060
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/vtable-optzn-array.ll [new file with mode: 0644]