[all-commits] [llvm/llvm-project] 8d61f8: [lld][RISCV] Avoid second map lookup in mergeArch....

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 11 17:32:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d61f82bd3676bc541edfad1014e3ed599cc1390
      https://github.com/llvm/llvm-project/commit/8d61f82bd3676bc541edfad1014e3ed599cc1390
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp

  Log Message:
  -----------
  [lld][RISCV] Avoid second map lookup in mergeArch. NFC (#84687)

Instead of using find and then inserting into the map, we can use
insert and fix up the version using the iterator if the insert fails.



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