[cfe-commits] r42473 - in /cfe/trunk: Parse/ParseObjc.cpp Sema/SemaDecl.cpp include/clang/AST/Decl.h

Chris Lattner clattner at apple.com
Mon Oct 1 12:04:30 PDT 2007


On Oct 1, 2007, at 10:02 AM, Fariborz Jahanian wrote:

>>
>> class B : public A {
>>  int Z : 4;
>>  void *Q;
>> ...
>> }
> Cute. If we conform to this ABI, then this is definitely the  
> preferred choice.

GCC conforms to this ABI on all platforms AFAIK, but I'm not sure if  
VC++ and other compilers do this optimization.

In the distant future (where AST's are as settled as the LLVM IR) we  
can do other forms of this optimization to make this portable to  
these other compilers and to be more general.  Until then, this is a  
nice easy and clean thing to do.

Thanks for taking care of it!

-Chris



More information about the cfe-commits mailing list