aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2017-10-15 20:13:17 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2017-10-15 20:13:17 +0000
commit6de129e710cfb2857064b236e90d53c0c41ea92c (patch)
treef39f8a781241ff458ddf3ac592e95dcbfd0e36bc /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parentac9309a112197f34319c5063ba3675614de1e04f (diff)
downloadllvm-6de129e710cfb2857064b236e90d53c0c41ea92c.zip
llvm-6de129e710cfb2857064b236e90d53c0c41ea92c.tar.gz
llvm-6de129e710cfb2857064b236e90d53c0c41ea92c.tar.bz2
[Sema] Re-land: Diagnose tautological comparison with type's min/max values
The first attempt, rL315614 was reverted because one libcxx test broke, and i did not know at the time how to deal with it. Summary: Currently, clang only diagnoses completely out-of-range comparisons (e.g. `char` and constant `300`), and comparisons of unsigned and `0`. But gcc also does diagnose the comparisons with the `std::numeric_limits<>::max()` / `std::numeric_limits<>::min()` so to speak Finally Fixes https://bugs.llvm.org/show_bug.cgi?id=34147 Continuation of https://reviews.llvm.org/D37565 Reviewers: rjmccall, rsmith, aaron.ballman Reviewed By: rsmith Subscribers: rtrieu, jroelofs, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D38101 llvm-svn: 315875
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions