summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-12-13 22:33:38 +0000
committerDuncan Sands <baldrick@free.fr>2008-12-13 22:33:38 +0000
commit24092271cc470d3f73a46573a678258bb0bfbf77 (patch)
tree8861d807145b563aae3b9beed092c7f8d7e2127b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentb1378f9b0fdc65714985d50a9b0c24537afd713a (diff)
downloadbcm5719-llvm-24092271cc470d3f73a46573a678258bb0bfbf77.tar.gz
bcm5719-llvm-24092271cc470d3f73a46573a678258bb0bfbf77.zip
LegalizeDAG is not supposed to introduce illegal
types into the DAG if they were not already there. Check this with an assertion. llvm-svn: 60997
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 3d2fb346269..c2b7d3f1db4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -620,9 +620,9 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
if (TimePassesIsEnabled) {
NamedRegionTimer T("DAG Legalization", GroupName);
- CurDAG->Legalize();
+ CurDAG->Legalize(DisableLegalizeTypes);
} else {
- CurDAG->Legalize();
+ CurDAG->Legalize(DisableLegalizeTypes);
}
DOUT << "Legalized selection DAG:\n";
OpenPOWER on IntegriCloud