diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-01 18:16:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-01 18:16:37 +0000 |
commit | e21c305ed85b2be4a27784ba52471f6b68fdd255 (patch) | |
tree | 56da5ed9fd65bf325b7c53d81df69cbc3bd29391 | |
parent | 01c8f6e452b16346defb09e94d1c928118498ee2 (diff) |
Fix casts from long to sbyte on ppc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22570 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index e6d5deb549..9e9f4fa487 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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: |