aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 03:33:13 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-07-26 03:33:13 +0000
commit844228a631f47bb39f71f617063831fb83c3843b (patch)
treee4b612c03b552a329b7d67cef4ac92c404e54a9a /lib/CodeGen/SelectionDAG
parent9e1e81ccbeff8d235feff8cd9f3c68d4a280a052 (diff)
downloadexternal_llvm-844228a631f47bb39f71f617063831fb83c3843b.zip
external_llvm-844228a631f47bb39f71f617063831fb83c3843b.tar.gz
external_llvm-844228a631f47bb39f71f617063831fb83c3843b.tar.bz2
Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public targets use this code-path, so no test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-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 5bcee35..25f0320 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3605,7 +3605,7 @@ SDOperand SelectionDAGLegalize::ExpandEXTRACT_VECTOR_ELT(SDOperand Op) {
if (isTypeLegal(TVT)) {
Vec = LegalizeOp(Vec);
Op = DAG.UpdateNodeOperands(Op, Vec, Idx);
- Op = LegalizeOp(Op);
+ return Op;
}
break;
case TargetLowering::Expand: