Yes, this looks fine. Thanks!

Sent from my iPhone

On Jul 20, 2012, at 8:11 PM, Rafael Espíndola <[email protected]> 
wrote:

> If I understand it correctly, the attribute in
> 
> __attribute__ ((regparm (3))) void bar(int x) ...
> 
> First gets applied to 'void' and then to the function type. This fails
> for destructors since they don't have a return type so we never call
> ConvertDeclSpecToType on them (which is the function that eventually
> calls processTypeAttrs).
> 
> The attached patch fixes the bug by calling processTypeAttrs when
> processing destructors in GetDeclSpecTypeForDeclarator. Is that the
> correct fix?
> 
> Cheers,
> Rafael
> <pr13396.patch>

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

Reply via email to