aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-19 01:10:49 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-19 01:10:49 +0000
commit1851898e757008228453aa3f4e3e06bbaecce04d (patch)
tree90a2b04607b2ca8de44a2e77cb43b876145823ac
parentfabd32deb025ebd47c5eb47259d2424fd789b05c (diff)
downloadexternal_llvm-1851898e757008228453aa3f4e3e06bbaecce04d.zip
external_llvm-1851898e757008228453aa3f4e3e06bbaecce04d.tar.gz
external_llvm-1851898e757008228453aa3f4e3e06bbaecce04d.tar.bz2
Negative indices aren't allowed here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43161 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index c111036..9516dff 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -4139,7 +4139,7 @@ SDOperand SelectionDAGLegalize::ExpandEXTRACT_VECTOR_ELT(SDOperand Op) {
MVT::getSizeInBits(TLI.getPointerTy()))
Idx = DAG.getNode(ISD::TRUNCATE, TLI.getPointerTy(), StackPtr);
else
- Idx = DAG.getNode(ISD::SIGN_EXTEND, TLI.getPointerTy(), StackPtr);
+ Idx = DAG.getNode(ISD::ZERO_EXTEND, TLI.getPointerTy(), StackPtr);
StackPtr = DAG.getNode(ISD::ADD, Idx.getValueType(), Idx, StackPtr);