[all-commits] [llvm/llvm-project] 89ecb8: MapVector: add C++17-style try_emplace and insert_...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Nov 12 20:45:50 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 89ecb8001afc38c2225f1fe7ab0d5fb729f25537
https://github.com/llvm/llvm-project/commit/89ecb8001afc38c2225f1fe7ab0d5fb729f25537
Author: Fangrui Song <i at maskray.me>
Date: 2023-11-12 (Sun, 12 Nov 2023)
Changed paths:
M llvm/include/llvm/ADT/MapVector.h
M llvm/unittests/ADT/MapVectorTest.cpp
Log Message:
-----------
MapVector: add C++17-style try_emplace and insert_or_assign (#71969)
Similar to https://wg21.link/n4279
For example, insert_or_assign can be used to simplify
CodeGenModule::AddDeferredUnusedCoverageMapping in
clang/lib/CodeGen/CodeGenModule.cpp
More information about the All-commits
mailing list