summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit3fead961212779bcf5082fdb70b6d594f78cf612 (patch)
tree43d7aa3f7beb0290e918d3320be89f7c1fae49cd /llvm/lib/CodeGen/SelectionDAG
parent62b35d41cdd4df115f34a304cfabf8addad38acf (diff)
downloadbcm5719-llvm-3fead961212779bcf5082fdb70b6d594f78cf612.tar.gz
bcm5719-llvm-3fead961212779bcf5082fdb70b6d594f78cf612.zip
Fix infinite recursion for when extract_vector_elt is legal. Unfortunately no public targets use this code-path, so no test.
llvm-svn: 40510
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 5bcee351ea7..25f032041d9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud