[all-commits] [llvm/llvm-project] 02b9c9: [memprof] Simplify code with MapVector::operator[]...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Mon Oct 7 09:00:27 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 02b9c97b75325c9b737772986e439cf8f3c0d1ab
https://github.com/llvm/llvm-project/commit/02b9c97b75325c9b737772986e439cf8f3c0d1ab
Author: Kazu Hirata <kazu at google.com>
Date: 2024-10-07 (Mon, 07 Oct 2024)
Changed paths:
M llvm/lib/ProfileData/MemProfReader.cpp
Log Message:
-----------
[memprof] Simplify code with MapVector::operator[] (NFC) (#111335)
Note that the following are all equivalent to each other:
Map.insert({Key, Value()}).first->second
Map.try_emplace(Key).first->second
Map[Key]
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