the truncate must always be done, it's only the assert that is conditional.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-26 05:21:05 +00:00
parent 00f23ec5c2
commit cc7b07a0ff

View 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;
}