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 8c58bd30dc
commit 370c77c064
1 changed files with 1 additions and 0 deletions

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;