summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSectionELF.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-06 08:49:08 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-06 08:49:08 +0000
commit99ce6bfe28d380da6635574dd5854db70b6d0d16 (patch)
tree30d8e75a352d46554e73a2b4896df9068a564bf8 /llvm/lib/MC/MCSectionELF.cpp
parentd59dd65fa44f1e94717d6488e5e6aa20f5563905 (diff)
downloadbcm5719-llvm-99ce6bfe28d380da6635574dd5854db70b6d0d16.tar.gz
bcm5719-llvm-99ce6bfe28d380da6635574dd5854db70b6d0d16.zip
Improve the -Wsign-compare heuristics:
* If the unsigned type is smaller than the signed type, never warn, because its value will not change when zero-extended to the larger type. * If we're testing for (in)equality, and the unsigned value is an integer constant whose sign bit is not set, never warn, because even though the signed value might change, it can't affect the result of the equality. Also make the comparison test cases much more rigorous, and have them expose the subtle differences between C and C++ here. llvm-svn: 86242
Diffstat (limited to 'llvm/lib/MC/MCSectionELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud