commit | 370c77c064923da475771f4f337f4745fededb6c | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Thu Aug 19 17:58:35 2010 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Thu Aug 19 17:58:35 2010 +0000 |
tree | 6b68d5e4f309a046d7b0063e9bd7735fd19b9c69 | |
parent | 8c58bd30dc4bd71be6c58ffccefb6ce74c1b2b67 [diff] [blame] |
Do not assert when reading an exponent out of range. llvm-svn: 111534
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 2e78557..b87ddf9 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp
@@ -153,6 +153,7 @@ value += absExponent * 10; if (absExponent >= overlargeExponent) { absExponent = overlargeExponent; + p = end; /* outwit assert below */ break; } absExponent = value;