Fix a bug the last patch exposed in treeadd among others

llvm-svn: 23127
This commit is contained in:
Chris Lattner 2005-08-29 01:07:02 +00:00
parent d4d683a47b
commit c429ab2fb1
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace {
virtual void InstructionSelectBasicBlock(SelectionDAG &DAG) {
DEBUG(BB->dump());
// Select target instructions for the DAG.
Select(DAG.getRoot());
DAG.setRoot(Select(DAG.getRoot()));
DAG.RemoveDeadNodes();
// Emit machine code to BB.