[all-commits] [llvm/llvm-project] 00cb96: [lld] Use *Set::insert_range (NFC) (#132590)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Mar 22 21:57:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00cb966209955878cee903068333d4d2d4f7b259
      https://github.com/llvm/llvm-project/commit/00cb966209955878cee903068333d4d2d4f7b259
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/wasm/Writer.cpp

  Log Message:
  -----------
  [lld] Use *Set::insert_range (NFC) (#132590)

DenseSet, SmallPtrSet, SmallSet, SetVector, and StringSet recently
gained C++23-style insert_range.  This patch replaces:

  Dest.insert(Src.begin(), Src.end());

with:

  Dest.insert_range(Src);



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list