Skip to content

Commit 5348a30

Browse files
[ExecutionEngine] Simplify code with DenseMap::operator[] (NFC) (llvm#115115)
1 parent 84745da commit 5348a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/ExecutionEngine/JITLink/aarch32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class StubsManager_v7 {
394394
using StubMapEntry = std::tuple<Symbol *, Symbol *>;
395395

396396
Symbol *&getStubSymbolSlot(StringRef Name, bool Thumb) {
397-
StubMapEntry &Stubs = StubMap.try_emplace(Name).first->second;
397+
StubMapEntry &Stubs = StubMap[Name];
398398
if (Thumb)
399399
return std::get<1>(Stubs);
400400
return std::get<0>(Stubs);

0 commit comments

Comments
 (0)