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

Eli Friedman eli.friedman at gmail.com
Wed Jun 4 10:03:46 PDT 2008


On Wed, Jun 4, 2008 at 9:43 AM, Ted Kremenek <kremenek at apple.com> wrote:
>
> On Jun 4, 2008, at 9:13 AM, Eli Friedman wrote:
>
>> On Wed, Jun 4, 2008 at 9:08 AM, Eli Friedman <eli.friedman at gmail.com>
>> wrote:
>>>
>>> On Wed, Jun 4, 2008 at 8:52 AM, Ted Kremenek <kremenek at apple.com> wrote:
>>>>
>>>> Anyone else seeing this?  Is this expected?  This is on Mac OS 10.5.3.
>>>>
>>>> $ ../TestRunner.sh struct.c
>>>> ******************** TEST 'struct.c' FAILED! ********************
>>>> Command:
>>>> clang struct.c -emit-llvm
>>>> Incorrect Output:
>>>> Assertion failed: (CGT.getTargetData().getABITypeSizeInBits(STy) ==
>>>> RL.getSize()), function layoutStructFields, file CodeGenTypes.cpp,
>>>> line 531.
>>>
>>> Probably my fault; I'll look into it.
> Is there any particular information you need to debug this?  I'm not very
> familiar with the Codegen module.

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?

-Eli



More information about the cfe-dev mailing list