aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp
index 20f8b78759..1b306d6990 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -135,8 +135,8 @@ void ScheduleDAGInstrs::startBlock(MachineBasicBlock *bb) {
}
void ScheduleDAGInstrs::finishBlock() {
+ // Subclasses should no longer refer to the old block.
BB = 0;
- // Nothing to do.
}
/// Initialize the map with the number of registers.