diff options
author | Duncan Sands <baldrick@free.fr> | 2008-12-13 22:33:38 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-12-13 22:33:38 +0000 |
commit | 0f546d4565b988f69850f42282e57a850153146d (patch) | |
tree | d669c6724eaf2b97974600e1d5e3271d08b57561 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 3f101bb1e74ff1be6e1a84425642e6adef2c75f0 (diff) |
LegalizeDAG is not supposed to introduce illegal
types into the DAG if they were not already there.
Check this with an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3d2fb34626..c2b7d3f1db 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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"; |