[llvm-commits] [llvm] r79353 - /llvm/trunk/lib/Support/APFloat.cpp
Erick Tryzelaar
idadesub at users.sourceforge.net
Tue Aug 18 11:20:37 PDT 2009
Author: erickt
Date: Tue Aug 18 13:20:37 2009
New Revision: 79353
URL: http://llvm.org/viewvc/llvm-project?rev=79353&view=rev
Log:
Fix an uninitialized value warning in APFloat.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=79353&r1=79352&r2=79353&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Tue Aug 18 13:20:37 2009
@@ -2132,7 +2132,7 @@
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 @@
hex_value = hexDigitValue(*p);
if(hex_value == -1U) {
- lost_fraction = lfExactlyZero;
break;
}
More information about the llvm-commits
mailing list