[all-commits] [llvm/llvm-project] 9bda38: [TextAPI] Use MapVector::try_emplace (NFC) (#143564)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Jun 10 11:36:47 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9bda38f8d912937a55025d88a0171e2813cf0b95
https://github.com/llvm/llvm-project/commit/9bda38f8d912937a55025d88a0171e2813cf0b95
Author: Kazu Hirata <kazu at google.com>
Date: 2025-06-10 (Tue, 10 Jun 2025)
Changed paths:
M llvm/lib/TextAPI/RecordsSlice.cpp
Log Message:
-----------
[TextAPI] Use MapVector::try_emplace (NFC) (#143564)
- try_emplace(Key) is shorter than insert({Key, nullptr}).
- try_emplace performs value initialization without value parameters.
- We overwrite values on successful insertion anyway.
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