OSDN Git Service

the truncate must always be done, it's only the assert that is conditional.
authorChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 05:21:05 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 05:21:05 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 564cb69..92e023e 100644 (file)
@@ -1200,8 +1200,8 @@ X86TargetLowering::LowerX86_64CCCArguments(SDOperand Op, SelectionDAG &DAG) {
             unsigned ExtOpc = (ArgFlags & 1) ? ISD::AssertSext :ISD::AssertZext;
             ArgValue = DAG.getNode(ExtOpc, MVT::i32, ArgValue,
                                    DAG.getValueType(ObjectVT));
-            ArgValue = DAG.getNode(ISD::TRUNCATE, ObjectVT, ArgValue);
           }
+          ArgValue = DAG.getNode(ISD::TRUNCATE, ObjectVT, ArgValue);
         }
         break;
       }