]> granicus.if.org Git - clang/commit
Add missing narrowing check: converting from a signed integral type to a wider
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 13 Jun 2012 01:07:41 +0000 (01:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 13 Jun 2012 01:07:41 +0000 (01:07 +0000)
commitcd65f4903dc737d92655a0cf72755c16831ae668
tree951c7e96d5fd0ee80e32486785814a90ae402d33
parente0deb035b3e2d07b41ea55db84b110abcb65b753
Add missing narrowing check: converting from a signed integral type to a wider
unsigned type is narrowing if the source is non-constant or negative.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158377 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.list/p7-0x.cpp