1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

always promote float varargs to double.

llvm-svn: 34604
This commit is contained in:
Chris Lattner 2007-02-25 19:59:18 +00:00
parent e6f7201099
commit 49fc72110a

View File

@ -1423,7 +1423,7 @@ static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG,
break;
case MVT::f32:
case MVT::f64:
if (isVarArg && isPPC64) {
if (isVarArg || isPPC64) {
// Float varargs need to be promoted to double.
if (Arg.getValueType() == MVT::f32)
Arg = DAG.getNode(ISD::FP_EXTEND, MVT::f64, Arg);