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

llvm-svn: 34628
This commit is contained in:
Chris Lattner 2007-02-26 05:21:05 +00:00
parent dd89d9c648
commit d41bff0f97
1 changed files with 1 additions and 1 deletions

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