Do not assert when reading an exponent out of range.

llvm-svn: 111534
This commit is contained in:
Dale Johannesen 2010-08-19 17:58:35 +00:00
parent d009b9d0a8
commit 579b1bef32

View File

@ -153,6 +153,7 @@ readExponent(StringRef::iterator begin, StringRef::iterator end)
value += absExponent * 10;
if (absExponent >= overlargeExponent) {
absExponent = overlargeExponent;
p = end; /* outwit assert below */
break;
}
absExponent = value;