[LLVMdev] Building lld with Visual Studio 2012 RC

Nick Kledzik kledzik at apple.com
Sat Jun 16 20:50:21 PDT 2012


On Jun 16, 2012, at 8:23 PM, Cesar Mello wrote:
> While this will make it compile, the code is not valid to begin with.
> It is trying to do a raw memory copy of a non standard-layout type.
> nameoffset is not guaranteed to directly follow cmdsize.

Are you saying that in:

struct A {
    int  f1;   // offset 0
    int  f2;   // offset 4
};

struct B : public A {
    int  f3;   // offset 8 ?
};

that f3 is not guaranteed to have the same offset it would have had, had it been the third field of A (offset 8)?

-Nick


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120616/ef9e57ba/attachment.html>


More information about the llvm-dev mailing list