[clang] Use try_emplace instead of insert when getting new identifier
authorserge-sans-paille <sguelton@mozilla.com>
Thu, 29 Dec 2022 15:24:58 +0000 (16:24 +0100)
committerserge-sans-paille <sguelton@mozilla.com>
Thu, 29 Dec 2022 20:40:21 +0000 (21:40 +0100)
commiteb20499dab29e2180dd0ff106edb3233ab243323
treebda63bfff72612a4c45435354655ad79c62de6b0
parent2f65a1a479dd3151050f3603597c6e245be1a509
[clang] Use try_emplace instead of insert when getting new identifier

This is both less verbose and slightly faster, according to:

https://llvm-compile-time-tracker.com/compare.php?from=d9ab3e82f30d646deff054230b0c742704a1cf26&to=73405077ad913f634797ffc7a7bbb110ac9cae99&stat=instructions:u

No functional change intended :-)
clang/include/clang/Basic/IdentifierTable.h