aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-03 19:21:38 +0000
committerChris Lattner <sabre@nondot.org>2007-03-03 19:21:38 +0000
commita9569f10de686119ff34b89e102b5a3cbafdf195 (patch)
treec7765598b63272298b05866f3b9796408a1c6887 /lib
parentb90fc7ed211b68c9a36e95c3f6bf877bdc70b524 (diff)
downloadexternal_llvm-a9569f10de686119ff34b89e102b5a3cbafdf195.zip
external_llvm-a9569f10de686119ff34b89e102b5a3cbafdf195.tar.gz
external_llvm-a9569f10de686119ff34b89e102b5a3cbafdf195.tar.bz2
Add an expand action for ISD label which just deletes the label.
This "fixes" PR1238. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index c323113..357e2cd 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -879,6 +879,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
Tmp2 = LegalizeOp(Node->getOperand(1)); // Legalize the label id.
Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2);
break;
+ case TargetLowering::Expand:
+ Result = LegalizeOp(Node->getOperand(0));
+ break;
}
break;