From: Dale Johannesen Date: Thu, 19 Aug 2010 17:58:35 +0000 (+0000) Subject: Do not assert when reading an exponent out of range. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b1508d18896f9b9de7738b8df3cace64a2b22955;p=oota-llvm.git Do not assert when reading an exponent out of range. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111534 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 2e785570113..b87ddf9c95b 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -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;