diff options
author | Andrew Trick <atrick@apple.com> | 2012-11-28 03:42:47 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-11-28 03:42:47 +0000 |
commit | b422104f35b93b262cad8c2b8ba8c2f55ef6c1e4 (patch) | |
tree | fa791c61d4c07517f7a32e0751df4f477c943d09 /lib | |
parent | 430b9079c614cd3f45015a6516590d33742cc802 (diff) | |
download | external_llvm-b422104f35b93b262cad8c2b8ba8c2f55ef6c1e4.zip external_llvm-b422104f35b93b262cad8c2b8ba8c2f55ef6c1e4.tar.gz external_llvm-b422104f35b93b262cad8c2b8ba8c2f55ef6c1e4.tar.bz2 |
misched: Debug output fix. Use an always valid iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachineScheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index 8d43360..2fe72bb 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -533,7 +533,7 @@ void ScheduleDAGMI::schedule() { placeDebugValues(); DEBUG({ - unsigned BBNum = top()->getParent()->getNumber(); + unsigned BBNum = begin()->getParent()->getNumber(); dbgs() << "*** Final schedule for BB#" << BBNum << " ***\n"; dumpSchedule(); dbgs() << '\n'; |