]> granicus.if.org Git - clang/commit
Teach -Wsign-compare to treat 1 << blah as "idiomatically non-negative".
authorJohn McCall <rjmccall@apple.com>
Wed, 7 Apr 2010 01:14:35 +0000 (01:14 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 7 Apr 2010 01:14:35 +0000 (01:14 +0000)
commit3aae6093dd8f3aecb66d7ff1f4b44e6a86765db4
treec9d19b93e3171e963cf559f61152d9e60dd2be53
parent974d97b251aaf5a735af83367cd3a930f3eb4333
Teach -Wsign-compare to treat 1 << blah as "idiomatically non-negative".
Fixes a spurious warning in LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100595 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/compare.c