From: Chris Lattner Date: Sat, 21 Jan 2006 19:12:11 +0000 (+0000) Subject: Fix a bug in a recent refactor that caused a bunch of programs to miscompile X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a3818e6f9a62db0c5b6aee28e44c30d5f96c9fa4;p=oota-llvm.git Fix a bug in a recent refactor that caused a bunch of programs to miscompile or the compiler to crash. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25503 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d70ffd94961..441311cc06e 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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(); }