Skip to content
Commit 0f09774f authored by Richard Trieu's avatar Richard Trieu
Browse files

Extend -Wtautological-constant-out-of-range-compare to handle boolean values

better.  This warning will now trigger on the following conditionals:

bool b;
int i;

if (b > 1) {}  // always false
if (0 <= (i > 5)) {} // always true
if (-1 > b) {} // always false

Patch by Per Viberg.

llvm-svn: 205608
parent 324a1036
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment