Fix casts from long to sbyte on ppc

llvm-svn: 22570
This commit is contained in:
Chris Lattner 2005-08-01 18:16:37 +00:00
parent 33bbf15147
commit 4398daf069
1 changed files with 1 additions and 1 deletions

View File

@ -1786,7 +1786,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
case Expand: case Expand:
ExpandOp(Node->getOperand(0), Tmp1, Tmp2); ExpandOp(Node->getOperand(0), Tmp1, Tmp2);
// Truncate the low part of the expanded value to the result type // Truncate the low part of the expanded value to the result type
Result = DAG.getNode(ISD::TRUNCATE, VT, Tmp1); Result = DAG.getNode(ISD::TRUNCATE, NVT, Tmp1);
} }
break; break;
case ISD::SIGN_EXTEND: case ISD::SIGN_EXTEND: