diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-18 18:20:37 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-18 18:20:37 +0000 |
commit | 82f74320e2974d0511cdae2e437bf46e019eaba8 (patch) | |
tree | 80a8a6d3fbf63a7c1ee9af1440bf3d137b8f6bae | |
parent | d631dfc90ab6fd378c03822c5744ad1fed6a370c (diff) | |
download | external_llvm-82f74320e2974d0511cdae2e437bf46e019eaba8.zip external_llvm-82f74320e2974d0511cdae2e437bf46e019eaba8.tar.gz external_llvm-82f74320e2974d0511cdae2e437bf46e019eaba8.tar.bz2 |
Fix an uninitialized value warning in APFloat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79353 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Support/APFloat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index d8d492c..d15a21b 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -2132,7 +2132,7 @@ APFloat::opStatus APFloat::convertFromHexadecimalString(const StringRef &s, roundingMode rounding_mode) { - lostFraction lost_fraction; + lostFraction lost_fraction = lfExactlyZero; integerPart *significand; unsigned int bitPos, partsCount; StringRef::iterator dot, firstSignificantDigit; @@ -2159,7 +2159,6 @@ APFloat::convertFromHexadecimalString(const StringRef &s, hex_value = hexDigitValue(*p); if(hex_value == -1U) { - lost_fraction = lfExactlyZero; break; } |