diff options
| author | Amir Ayupov <aaupov@fb.com> | 2025-06-08 17:43:02 -0700 |
|---|---|---|
| committer | Amir Ayupov <aaupov@fb.com> | 2025-06-08 17:43:02 -0700 |
| commit | 68b99df7ad1b910378c8cda5afff637fbe3c0efc (patch) | |
| tree | 1d2e51419c3f89a0909603d355598c27f1a92d42 /llvm/lib/MC/StringTableBuilder.cpp | |
| parent | bbbecc425389aeb7b93d9018b40a95b389c27f40 (diff) | |
| parent | c480dcddd91e3ff0707d6629e6ddac8587d9d1f1 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/aaupov/spr/main.bolt-sort-entrydata
Created using spr 1.3.4
[skip ci]
Diffstat (limited to 'llvm/lib/MC/StringTableBuilder.cpp')
| -rw-r--r-- | llvm/lib/MC/StringTableBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/StringTableBuilder.cpp b/llvm/lib/MC/StringTableBuilder.cpp index df316bae98ce..7accdc2a9e77 100644 --- a/llvm/lib/MC/StringTableBuilder.cpp +++ b/llvm/lib/MC/StringTableBuilder.cpp @@ -204,7 +204,7 @@ size_t StringTableBuilder::add(CachedHashStringRef S) { assert(S.size() > COFF::NameSize && "Short string in COFF string table!"); assert(!isFinalized()); - auto P = StringIndexMap.insert(std::make_pair(S, 0)); + auto P = StringIndexMap.try_emplace(S); if (P.second) { size_t Start = alignTo(Size, Alignment); P.first->second = Start; |
