Fix an uninitialized value warning in APFloat.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Erick Tryzelaar 2009-08-18 18:20:37 +00:00
parent 2a80dc7814
commit f8bc801c6c

View File

@ -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;
}