[LLVMdev] Object layout bug for C++ derived class with long long integer

Anton Korobeynikov anton at korobeynikov.info
Sat Feb 27 06:35:32 PST 2010


>> How does the generated LLVM IR for these structs look like?
>
> For Foo:
I mean what was the IR generated by llvm-gcc for such code.

>> llvm-gcc tries to follow the mainline gcc for mingw
>> platform. There were some changes post-2.6 wrt long long native
>> alignment, you might try to look into code at svn head.
>
> Unfortunately, svn head is incompatible with 2.6 (see an earlier email I sent on the list). Since 2.6 is what people get today from tools like apt-get or MacPorts, 2.7 is not really an option for me yet.
Then you should workaround this bug somehow, sorry.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list