diff options
author | Dale Johannesen <dalej@apple.com> | 2010-08-19 17:58:35 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-08-19 17:58:35 +0000 |
commit | b1508d18896f9b9de7738b8df3cace64a2b22955 (patch) | |
tree | 841d704855bc42de7059654ec65c72fe8015fd90 /lib/Support/APFloat.cpp | |
parent | 74d7b0af58951dce2f874c600a6a48a2454b4914 (diff) |
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
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r-- | lib/Support/APFloat.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 2e78557011..b87ddf9c95 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; |