[patch] Cleanup linkage computation for static locals

John McCall rjmccall at apple.com
Wed Jun 5 09:43:50 PDT 2013

On Jun 5, 2013, at 7:15 AM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> Forgot the patch the first time.

Hmm.  I think you should use the linkage of the enclosing function
instead of linkonce_odr;  in particular, if the enclosing function is an
explicit template instantiation, the static local should have weak_odr


More information about the cfe-commits mailing list