From e07415d4006b923ed1d2057ffa5a493353e28f9e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Feb 2008 05:53:40 +0000 Subject: [PATCH] implement expand for ISD::DECLARE by just deleting it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47708 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index ff4ddf373f1..e0069b553fb 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1111,6 +1111,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { Tmp3 = LegalizeOp(Node->getOperand(2)); // Legalize the variable. Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2, Tmp3); break; + case TargetLowering::Expand: + Result = LegalizeOp(Node->getOperand(0)); + break; } break; -- 2.34.1