OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d7b0a
)
Do not assert when reading an exponent out of range.
author
Dale Johannesen
<dalej@apple.com>
Thu, 19 Aug 2010 17:58:35 +0000
(17:58 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Thu, 19 Aug 2010 17:58:35 +0000
(17:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111534
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index
2e78557
..
b87ddf9
100644
(file)
--- 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;