=?utf-8?q?Balázs_Kéri?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


zwuis wrote:

> ... but I'm not sure whether common patterns like `if ((x = 
> dyn_cast<...>(...)) && ...)` should be considered as a FP. IMO they are safe 
> and the extra parentheses signal that the assignment is intentional.

Not _extra_. The operator precedence of `=` is low. `a = b && c` is equivalent 
to `a = (b && c)`, not `(a = b) && c`.

https://github.com/llvm/llvm-project/pull/180219
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to