commit | cc021a04f97e93777f8323dd564f2976de285f14 | [log] [tgz] |
---|---|---|
author | Christopher Lamb <christopher.lamb@gmail.com> | Thu Jul 26 03:33:13 2007 +0000 |
committer | Christopher Lamb <christopher.lamb@gmail.com> | Thu Jul 26 03:33:13 2007 +0000 |
tree | e4b612c03b552a329b7d67cef4ac92c404e54a9a | |
parent | 49f63bc47882223f2051ecbf294cc496aff4acb5 [diff] [blame] |
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 5bcee35..25f0320 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3605,7 +3605,7 @@ if (isTypeLegal(TVT)) { Vec = LegalizeOp(Vec); Op = DAG.UpdateNodeOperands(Op, Vec, Idx); - Op = LegalizeOp(Op); + return Op; } break; case TargetLowering::Expand: