[all-commits] [llvm/llvm-project] 2e2a79: [ProfileData] Use DenseMap::try_emplace (NFC) (#14...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Sat May 17 13:54:06 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2e2a7923a428e78b5387be1e28f63db1bc1171bb
https://github.com/llvm/llvm-project/commit/2e2a7923a428e78b5387be1e28f63db1bc1171bb
Author: Kazu Hirata <kazu at google.com>
Date: 2025-05-17 (Sat, 17 May 2025)
Changed paths:
M llvm/lib/ProfileData/InstrProfWriter.cpp
Log Message:
-----------
[ProfileData] Use DenseMap::try_emplace (NFC) (#140394)
We can simplify the code with structured binding and try_emplace.
Note that try_emplace default-constructs the value if omitted.
FWIW, structured binding, a C++17 feature, wasn't available in our
codebase at the time the code was written.
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