]> granicus.if.org Git - clang/commit
Don't diagnose overflow in case statements when the conversion is a
authorDouglas Gregor <dgregor@apple.com>
Thu, 18 Feb 2010 00:56:01 +0000 (00:56 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 18 Feb 2010 00:56:01 +0000 (00:56 +0000)
commit2853eac24e2e70a74d7da817653b0528b976039f
tree61ae95787c91ce4430bc856fcc964aa43fe6250d
parent6041111f3749e76a1712ec58dd17449bd3177ddd
Don't diagnose overflow in case statements when the conversion is a
signed<->unsigned conversion with the same bit width. Fixes
<rdar://problem/7658121>.

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