From 80edfb3af5ed214c5cd7797b37cb3bb024e98cc6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 17 Apr 2006 22:10:08 +0000 Subject: [PATCH] Fix handling of calls in functions that use vectors. This fixes a crash on the code in GCC PR26546. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27780 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 30044471d44..b9f50ddbe1c 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -433,19 +433,7 @@ bool SelectionDAGLegalize::LegalizeAllNodesNotLeadingTo(SDNode *N, if (OperandsLeadToDest) return true; // Okay, this node looks safe, legalize it and return false. - switch (getTypeAction(N->getValueType(0))) { - case Legal: - LegalizeOp(SDOperand(N, 0)); - break; - case Promote: - PromoteOp(SDOperand(N, 0)); - break; - case Expand: { - SDOperand X, Y; - ExpandOp(SDOperand(N, 0), X, Y); - break; - } - } + HandleOp(SDOperand(N, 0)); return false; } -- 2.34.1