aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/WinException.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-04-13 16:36:03 -0700
committerGitHub <noreply@github.com>2025-04-13 16:36:03 -0700
commitdc5178cc41d876b4e3d8ace9545f6e9898ef654b (patch)
tree43410344f66baf532e21fc2c67dc47ce94c3fc25 /llvm/lib/CodeGen/AsmPrinter/WinException.cpp
parent20d35fe5a58c3d90613dd50ec91aca700e111726 (diff)
downloadllvm-dc5178cc41d876b4e3d8ace9545f6e9898ef654b.zip
llvm-dc5178cc41d876b4e3d8ace9545f6e9898ef654b.tar.gz
llvm-dc5178cc41d876b4e3d8ace9545f6e9898ef654b.tar.bz2
[CodeGen] Use llvm::append_range (NFC) (#135567)
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