OSDN Git Service

always promote float varargs to double.
authorChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 19:59:18 +0000 (19:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 25 Feb 2007 19:59:18 +0000 (19:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34604 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index c7ab474..61c3f11 100644 (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);