aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-07-17 07:23:07 -0700
committerGitHub <noreply@github.com>2025-07-17 07:23:07 -0700
commit577585198637fc2ced2a4fdf20f91c58fb74c717 (patch)
tree8f245fdb43861e0b2ff58bc74d8c1aa3453b5f4a /clang/lib/Frontend/TestModuleFileExtension.cpp
parent73e8ada540acbd60f916ef4b0a5a2b454c8ece44 (diff)
downloadllvm-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