On Wed, Jan 28, 2009 at 3:36 PM, Douglas Gregor <[email protected]> wrote:
> +    // When we're coping with C99 designated initializers into a
> +    // union, find the field that has the same type as the expression
> +    // we're initializing the union with.
> +    if (isUnion && CurInitVal < NumInitElements &&
> +        (CGF.getContext().getCanonicalType(Field->getType()) !=
> +           
> CGF.getContext().getCanonicalType(E->getInit(CurInitVal)->getType())))
> +      continue;

This is kind of messy.  Also, shouldn't this be using getUnqualifiedType()?

-Eli
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to