]> granicus.if.org Git - clang/commit
Don't produce "comparison is always (true|false)" warnings when the
authorDouglas Gregor <dgregor@apple.com>
Sat, 19 Feb 2011 22:34:59 +0000 (22:34 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 19 Feb 2011 22:34:59 +0000 (22:34 +0000)
commit3e026e323f1bd820fb9c880b1db951c87df94bb4
tree76f6208405966d2a464db95e33ab0207bc0489be
parente0fd832b076eb5a1e4a4549687af0dbf2ad57181
Don't produce "comparison is always (true|false)" warnings when the
comparison itself is a constant expression. Fixes PR7536.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/compare.cpp
test/SemaCXX/type-dependent-exprs.cpp