From: Christopher Lamb Date: Thu, 26 Jul 2007 03:33:13 +0000 (+0000) Subject: Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=844228a631f47bb39f71f617063831fb83c3843b;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 5bcee351ea7..25f032041d9 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: