Fix handling of calls in functions that use vectors. This fixes a crash on
authorChris Lattner <sabre@nondot.org>
Mon, 17 Apr 2006 22:10:08 +0000 (22:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 17 Apr 2006 22:10:08 +0000 (22:10 +0000)
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

index 30044471d44289d983a21fb5c69db03d0ccef1b5..b9f50ddbe1c8ce0ca07eeaebe4aad8bfa799a538 100644 (file)
@@ -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;
 }