silence some warnings in an optimized build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-08-24 03:02:34 +00:00
parent 343e770983
commit ada530b4f5

View File

@@ -922,7 +922,7 @@ APFloat::addOrSubtractSignificand(const APFloat &rhs, bool subtract)
lost_fraction = temp_rhs.shiftSignificandRight(bits - 1); lost_fraction = temp_rhs.shiftSignificandRight(bits - 1);
shiftSignificandLeft(1); shiftSignificandLeft(1);
reverse = false; reverse = false;
} else if(bits < 0) { } else {
lost_fraction = shiftSignificandRight(-bits - 1); lost_fraction = shiftSignificandRight(-bits - 1);
temp_rhs.shiftSignificandLeft(1); temp_rhs.shiftSignificandLeft(1);
reverse = true; reverse = true;
@@ -1496,8 +1496,7 @@ APFloat::convertFromHexadecimalString(const char *p,
} }
APFloat::opStatus APFloat::opStatus
APFloat::convertFromString(const char *p, roundingMode rounding_mode) APFloat::convertFromString(const char *p, roundingMode rounding_mode) {
{
/* Handle a leading minus sign. */ /* Handle a leading minus sign. */
if(*p == '-') if(*p == '-')
sign = 1, p++; sign = 1, p++;
@@ -1506,12 +1505,10 @@ APFloat::convertFromString(const char *p, roundingMode rounding_mode)
if(p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) if(p[0] == '0' && (p[1] == 'x' || p[1] == 'X'))
return convertFromHexadecimalString(p + 2, rounding_mode); return convertFromHexadecimalString(p + 2, rounding_mode);
else
{
assert(0 && "Decimal to binary conversions not yet implemented"); assert(0 && "Decimal to binary conversions not yet implemented");
abort(); abort();
} }
}
// For good performance it is desirable for different APFloats // For good performance it is desirable for different APFloats
// to produce different integers. // to produce different integers.