From a9680df6690c56e0fa3045439dd6915ef4de3331 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 18 Aug 2009 18:20:37 +0000 Subject: Fix an uninitialized value warning in APFloat. llvm-svn: 79353 --- llvm/lib/Support/APFloat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index d8d492cd7bf..d15a21b4ff7 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/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; } -- cgit v1.2.3