[cfe-commits] r71461 - in /cfe/trunk: lib/CodeGen/CGCall.cpp test/CodeGen/x86_32-arguments.c

Daniel Dunbar daniel at zuster.org
Mon May 11 14:44:58 PDT 2009


On Mon, May 11, 2009 at 12:07 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Mon, May 11, 2009 at 11:58 AM, Daniel Dunbar <daniel at zuster.org> wrote:
>> +  QualType FT = FD->getType();
>> +  // Arrays of empty records count as empty.
>> +  if (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT))
>> +    if (isEmptyRecord(Context, AT->getElementType()))
>> +      return true;
>
> Not that this is really relevant to this fix, but is it intentional
> that "struct empty a[10];" and "struct empty a[10][10];" are treated
> differently here?

No, its a thinko == bug. Will fix...

 - Daniel

> -Eli
>




More information about the cfe-commits mailing list