diff options
author | Richard Trieu <rtrieu@google.com> | 2014-04-04 04:13:47 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-04-04 04:13:47 +0000 |
commit | 0f09774f1722d23d22cd28e0f5b8a8d8008a6613 (patch) | |
tree | a19fc00e8d761cb3b40c937c344b037fadb49470 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 324a1036194f95385b26c941bc82cc6dadf50ac7 (diff) | |
download | bcm5719-llvm-0f09774f1722d23d22cd28e0f5b8a8d8008a6613.tar.gz bcm5719-llvm-0f09774f1722d23d22cd28e0f5b8a8d8008a6613.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions