[all-commits] [llvm/llvm-project] 7108de: [MC] Use *Map::try_emplace (NFC) (#140397)

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat May 17 14:28:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7108deca41f1ef05e399287bb5b37301e484123d
      https://github.com/llvm/llvm-project/commit/7108deca41f1ef05e399287bb5b37301e484123d
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-17 (Sat, 17 May 2025)

  Changed paths:
    M llvm/lib/MC/MCContext.cpp

  Log Message:
  -----------
  [MC] Use *Map::try_emplace (NFC) (#140397)

try_emplace with is much shorter and simpler if we are
default-constructing the value.

While I'm at it, this patch uses structured bindings to receive the
return value from try_emplace.



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