Handle '.' correctly in hex float literal parsing.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 17 Jul 2013 22:17:29 +0000 (22:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 17 Jul 2013 22:17:29 +0000 (22:17 +0000)
commit763c066dca324ac4b86e7f014fe580ae5ba29fa0
tree53d2b5421b3b00b505ab2d2f4942823bbed72fa4
parenta71443a002568e5b2ba8c494f291816b56a0ac08
Handle '.' correctly in hex float literal parsing.

There were a couple of different loops that were not handling
'.' correctly in APFloat::convertFromHexadecimalString; these mistakes
could lead to assertion failures and incorrect rounding for overlong
hex float literals.

Fixes PR16643.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186539 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APFloat.cpp
unittests/ADT/APFloatTest.cpp