[PATCH] Fix to PR15537 - assertion failure when comparing atomic unsigned int to int.

John McCall rjmccall at apple.com
Wed Apr 24 23:44:02 PDT 2013

On Apr 24, 2013, at 9:57 PM, Doug Gregor <dgregor at apple.com> wrote:
>  I'm confused as to why we're not just extending the checks here:
>    if (LHS.get()->getType()->isArithmeticType() &&
>        RHS.get()->getType()->isArithmeticType()) {
>  to allow arithmetic or _Atomic of arithmetic?

Is there a way in which that road doesn't force us to require basically
every type-check in Sema to handle atomic types?  We should
canonicalize out atomic types before doing all this analysis.


More information about the cfe-commits mailing list