APFloat V = FPC->getValueAPF();
uint64_t x[2];
uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
- APFloat::opStatus status = V.convertToInteger(x, DestBitWidth,
- opc==Instruction::FPToSI,
- APFloat::rmTowardZero);
- if (status!=APFloat::opOK && status!=APFloat::opInexact)
- return 0; // give up
+ (void) V.convertToInteger(x, DestBitWidth, opc==Instruction::FPToSI,
+ APFloat::rmTowardZero);
APInt Val(DestBitWidth, 2, x);
return ConstantInt::get(Val);
}