[all-commits] [llvm/llvm-project] 9b93c9: [PassManager] Simplify code with DenseMap::try_emp...

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


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

  Changed paths:
    M llvm/include/llvm/IR/PassManagerImpl.h

  Log Message:
  -----------
  [PassManager] Simplify code with DenseMap::try_emplace (NFC) (#140402)

We can simplify the code with DenseMap::try_emplace and structured
binding.  Note that DenseMap::try_emplace default-constructs the value
if omitted.



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