[codeview] Don't assert when the user violates the ODR
authorReid Kleckner <rnk@google.com>
Fri, 24 Mar 2017 23:28:42 +0000 (23:28 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 24 Mar 2017 23:28:42 +0000 (23:28 +0000)
commit6b78e16368bb74bb51024becf91356b38af56b5d
tree7c3f27b86a5f3a70fd60b83ab9cab2f0257f57eb
parent22f0d804f57b685028ea4c0f77ac6a46b5fc5785
[codeview] Don't assert when the user violates the ODR

If we have an array of a user-defined aggregates for which there was an
ODR violation, then the array size will not necessarily match the number
of elements times the size of the element.

Fixes PR32383

llvm-svn: 298750
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/array-odr-violation.ll [new file with mode: 0644]