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

Eli Friedman eli.friedman at gmail.com
Mon May 11 12:07:24 PDT 2009


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?

-Eli




More information about the cfe-commits mailing list