diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-17 07:23:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-17 07:23:07 -0700 |
commit | 577585198637fc2ced2a4fdf20f91c58fb74c717 (patch) | |
tree | 8f245fdb43861e0b2ff58bc74d8c1aa3453b5f4a /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 73e8ada540acbd60f916ef4b0a5a2b454c8ece44 (diff) | |
download | llvm-577585198637fc2ced2a4fdf20f91c58fb74c717.zip llvm-577585198637fc2ced2a4fdf20f91c58fb74c717.tar.gz llvm-577585198637fc2ced2a4fdf20f91c58fb74c717.tar.bz2 |
[llvm] Use *Map::try_emplace (NFC) (#149257)
- try_emplace(Key) is shorter than insert({Key, nullptr}).
- try_emplace performs value initialization without value parameters.
- We overwrite values on successful insertion anyway.
While we are at it, this patch simplifies the code with structured
binding.
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions