aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-21 19:12:11 +0000
committerChris Lattner <sabre@nondot.org>2006-01-21 19:12:11 +0000
commita3818e6f9a62db0c5b6aee28e44c30d5f96c9fa4 (patch)
treed6dc3ee8575c4f1b7cc0433035eb7547b7f603c2
parent19e5e141c1c47d9ae5df3c0346a4903ed34a1190 (diff)
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
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index d70ffd9496..441311cc06 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();
}