diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 8cae848bb0b..4ca0176e5a4 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -24,6 +24,7 @@ #include "llvm/Target/TargetLowering.h" #include "llvm/Support/Debug.h" #include +#include using namespace llvm; //===----------------------------------------------------------------------===// @@ -958,7 +959,7 @@ void SparcDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) { DEBUG(BB->dump()); // Select target instructions for the DAG. - DAG.setRoot(Select(DAG.getRoot())); + DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); DAG.RemoveDeadNodes();