From f8bc801c6cbaa1a7d34d779266755a86c97f5650 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 18 Aug 2009 18:20:37 +0000 Subject: [PATCH] Fix an uninitialized value warning in APFloat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79353 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/APFloat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index d8d492cd7bf..d15a21b4ff7 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; } -- 2.50.1