]> granicus.if.org Git - clang/commit
Only emit implicit constant conversion truncation warnings in reachable code. Appare...
authorTed Kremenek <kremenek@apple.com>
Sat, 22 Oct 2011 02:37:33 +0000 (02:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 22 Oct 2011 02:37:33 +0000 (02:37 +0000)
commit5e745da03df27ac620b0a5cc280d0d1757cfbac1
treee2bb736fb561d8924f26f14db99a3faba5365065
parent439ed1656664b29841f70b6c0b91460534ff4d93
Only emit implicit constant conversion truncation warnings in reachable code.  Apparently this is what GCC does, and some code depends on this.  Fixes <rdar://problem/10321089>.

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