]> granicus.if.org Git - llvm/commit
[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)
commit4b2847eaf84f3f56cf66d28ef90869fdadc84a52
tree5d877e031ff2b5a797498c8dc46b241be97393b0
parent6bf738a1c88ffaecdb3b9bd9c8776c0407cc4505
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
test/DebugInfo/COFF/array-odr-violation.ll [new file with mode: 0644]