Remove roundingMode argument in APFloat::mod
Because mod is always exact, this function should have never taken a rounding mode argument. The actual implementation still has issues, which I'll look at resolving in a subsequent patch. llvm-svn: 248195
This commit is contained in:
@@ -869,8 +869,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
|
||||
GV.IntVal = apfLHS.bitcastToAPInt();
|
||||
break;
|
||||
case Instruction::FRem:
|
||||
apfLHS.mod(APFloat(Sem, RHS.IntVal),
|
||||
APFloat::rmNearestTiesToEven);
|
||||
apfLHS.mod(APFloat(Sem, RHS.IntVal));
|
||||
GV.IntVal = apfLHS.bitcastToAPInt();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user