diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-26 22:50:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 22:50:40 +0000 |
commit | eb150d7d1fe0a7c63a9008798324a284bbcb9ce9 (patch) | |
tree | 102b6a86699bfe9740fe2c84fcf59934b4535ae1 | |
parent | 9d3a483a3826d3749c2db9863ddb6e824f1dd6d4 (diff) |
Nate noticed that Andrew never did this. This fixes PR600
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23110 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 dc706c1eea..624933cd51 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2005,7 +2005,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) { Result = DAG.getNode(ISD::UNDEF, NVT); break; case ISD::Constant: - Result = DAG.getNode(ISD::ZERO_EXTEND, NVT, Op); + Result = DAG.getNode(ISD::SIGN_EXTEND, NVT, Op); assert(isa<ConstantSDNode>(Result) && "Didn't constant fold zext?"); break; case ISD::ConstantFP: |