aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/WindowScheduler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/WindowScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/WindowScheduler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/WindowScheduler.cpp b/llvm/lib/CodeGen/WindowScheduler.cpp
index 78af631..95c86a9 100644
--- a/llvm/lib/CodeGen/WindowScheduler.cpp
+++ b/llvm/lib/CodeGen/WindowScheduler.cpp
@@ -283,8 +283,7 @@ void WindowScheduler::restoreMBB() {
MI.eraseFromParent();
}
// Restore MBB to the state before window scheduling.
- for (auto *MI : OriMIs)
- MBB->push_back(MI);
+ llvm::append_range(*MBB, OriMIs);
updateLiveIntervals();
}