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:
parent
e6f7201099
commit
49fc72110a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user