]> granicus.if.org Git - clang/commit
When warning about comparing an unsigned int to being >= 0, don't issue a warning...
authorTed Kremenek <kremenek@apple.com>
Thu, 23 Sep 2010 21:43:44 +0000 (21:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 23 Sep 2010 21:43:44 +0000 (21:43 +0000)
commite3b159c0d4a93db8586861ff011b5a10de4ae6ef
tree88108330f1b86714fc86d22db6b7bc203d166392
parent0d22d225ca6fd701473d13020dd46bd5a798de3b
When warning about comparing an unsigned int to being >= 0, don't issue a warning if the zero value was an
enum or was expanded from a macro.

Fixes: <rdar://problem/8414119>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114695 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/compare.c