]> granicus.if.org Git - clang/commit
Don't warn about case-value conversions from a negative value to a
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 01:04:55 +0000 (01:04 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 01:04:55 +0000 (01:04 +0000)
commitf9f627dbbc62fbf51b906c24c783b4249dc7e9bb
treed43325b481c5d6730a01cc3c1f7743217442d9a5
parent3363b35e518c28b504d4a600dc8cb168324b17d5
Don't warn about case-value conversions from a negative value to a
larger unsigned value, since this is implementation-defined
behavior. (We previously suppressed this warning when converting from
a signed value to an unsigned value of the same size).

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