Fix casts from long to sbyte on ppc
authorChris Lattner <sabre@nondot.org>
Mon, 1 Aug 2005 18:16:37 +0000 (18:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Aug 2005 18:16:37 +0000 (18:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22570 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index e6d5deb5491af6bd82f521ca090167cf6151338d..9e9f4fa48790f688ea92e70b3a1cf4fa4199bf5e 100644 (file)
@@ -1786,7 +1786,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
     case Expand:
       ExpandOp(Node->getOperand(0), Tmp1, Tmp2);
       // 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;
   case ISD::SIGN_EXTEND: