]> granicus.if.org Git - clang/commit
Parse into an unsigned type instead of a signed type and then checking for positive...
authorCraig Topper <craig.topper@gmail.com>
Wed, 21 Oct 2015 04:52:36 +0000 (04:52 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 21 Oct 2015 04:52:36 +0000 (04:52 +0000)
commit6bd3d26b25afc8582dbbb456da98e72024ff3a42
treee13992a262bd2fe40bcd711e9c5b0bdaff861940
parent77fa3951ac94a7fa3565c3a0623b7bbac6b60391
Parse into an unsigned type instead of a signed type and then checking for positive and casting to unsigned. Since we know the string starts with a digit it couldn't be negative anyway. NFCI

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/TargetInfo.cpp