From d0c941c89e614cf025e6083f5aaab61e42c899bd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Feb 2007 05:21:05 +0000 Subject: [PATCH] the truncate must always be done, it's only the assert that is conditional. llvm-svn: 34628 --- lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 564cb692d14..92e023e5212 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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; }