Fix a bug in a recent refactor that caused a bunch of programs to miscompile
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jan 2006 19:12:11 +0000 (19:12 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jan 2006 19:12:11 +0000 (19:12 +0000)
or the compiler to crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25503 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index d70ffd94961d4ed6aeadec808aac7c1793c6f0e6..441311cc06e2b64f7f5842e8c840800b548258bb 100644 (file)
@@ -1747,5 +1747,5 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF,
 void SelectionDAGISel::ScheduleAndEmitDAG(SelectionDAG &DAG) {
   if (ViewSchedDAGs) DAG.viewGraph();
   ScheduleDAG *SL = createSimpleDAGScheduler(DAG, BB);
-  SL->Run();
+  BB = SL->Run();
 }