aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/WinException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/WinException.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
index 0622839..55d1350 100644
--- a/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
@@ -162,8 +162,7 @@ void WinException::endFunction(const MachineFunction *MF) {
if (!MF->getEHContTargets().empty()) {
// Copy the function's EH Continuation targets to a module-level list.
- EHContTargets.insert(EHContTargets.end(), MF->getEHContTargets().begin(),
- MF->getEHContTargets().end());
+ llvm::append_range(EHContTargets, MF->getEHContTargets());
}
}
@@ -292,8 +291,7 @@ void WinException::endFuncletImpl() {
if (!MF->getEHContTargets().empty()) {
// Copy the function's EH Continuation targets to a module-level list.
- EHContTargets.insert(EHContTargets.end(), MF->getEHContTargets().begin(),
- MF->getEHContTargets().end());
+ llvm::append_range(EHContTargets, MF->getEHContTargets());
}
// Switch back to the funclet start .text section now that we are done