[cfe-dev] test case: Codegen/struct.c is failing with an assertion failure

Ted Kremenek kremenek at apple.com
Wed Jun 4 14:06:34 PDT 2008


On Jun 4, 2008, at 1:56 PM, Devang Patel wrote:

>
> On Jun 4, 2008, at 10:03 AM, Eli Friedman wrote:
>
>>
>> That assertion essentially means that the LLVM type isn't ending up
>> with the expected size according to the layout done in Sema.
>>
>> I tried committing another fix; could you see if it helps?
>
> I have
> $ svnversion .
> 51965
> $ ../../../Debug/bin/clang CodeGen/struct.c -o /tmp/a --emit-llvm
> Assertion failed: (CGT.getTargetData().getABITypeSizeInBits(STy) ==  
> RL.getSize()), function layoutStructFields, file CodeGenTypes.cpp,  
> line 531.
>
> Do you see this failure ?
> -
> Devang
>
>
>

I saw this failure earlier, but one of Eli's patches fixed it for me:

(kremenek at grue:CodeGen)$ clang struct.c -emit-llvm
(kremenek at grue:CodeGen)$

I assume your local LLVM copy is also TOT?



More information about the cfe-dev mailing list