[PATCH] Add warnings for undefined behaviors with pointers
rtrieu at google.com
Mon Jun 2 21:25:28 PDT 2014
Extend tautological compare and bool conversion warnings to undefined pointer operations. These are cases where all defined behavior will give the expression one value, while the other value can only result from undefined behavior, which the optimizer can remove. These cases are addresses of references and the this pointer. This warning was requested in PR19899 in response to commit r209723.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7734 bytes
Desc: not available
More information about the cfe-commits