]> granicus.if.org Git - clang/commit
Fix the field count in interface record layout (it was incorrectly
authorDaniel Dunbar <daniel@zuster.org>
Mon, 4 May 2009 23:23:09 +0000 (23:23 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 4 May 2009 23:23:09 +0000 (23:23 +0000)
commit6e8575b88bfb2634d7b28c0c4d5ed2a6acc8418a
tree520161afb1b1586c482f4778beed50730248a4c1
parent31fa7d7022877f24e001c30643de073df427d8dd
Fix the field count in interface record layout (it was incorrectly
compensating for super classes). This was making the reported class
sizes for empty classes very, very wrong.
 - Also, we now report the size info for an empty class like gcc (as
   the offset of the start, not as 0, 0).

 - Add a few more test cases we were mishandling before (padding bit
   field at end of struct, for example).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70938 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/interface-layout-64.m