]> granicus.if.org Git - clang/commit
MS ABI: Just use getTypeInfoInChars to get the field size
authorReid Kleckner <reid@kleckner.net>
Tue, 25 Feb 2014 18:08:48 +0000 (18:08 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 25 Feb 2014 18:08:48 +0000 (18:08 +0000)
commitee8d6b96cec22857c609a0ff439e237a6c4fccc5
tree01d6e29308b408988a38258144afb243ab98615c
parent73db075cf6b212c854b2b65ee0019e78e5dcfa3a
MS ABI: Just use getTypeInfoInChars to get the field size

This was changed to use manual desugaring and multiplication in r201832
and fixed for multi-dimensional arrays in r201917.  However, it breaks
down in the presence of typedefs.  Rather than attempting to handle all
the desugaring, just go back to calling the generic type info code.

This was discovered while compiling SIInstrWaits.cpp in the R600
backend.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202175 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/Layout/ms-x86-basic-layout.cpp