Relational comparison with bitwise results is always true/false

Anders Rönnholm Anders.Ronnholm at evidente.se
Mon Aug 25 09:19:46 PDT 2014


Hi,
 
I have made a new bitwise comparison always true check for relational comparisons i'd like to get reviewed.
 
e.g
if ((x & 64) < 65) // bitwise comparison always evaluates to true
 
//Anders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitwise.diff
Type: application/octet-stream
Size: 6696 bytes
Desc: bitwise.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140825/26e50b94/attachment.obj>


More information about the cfe-commits mailing list