Skip to content

Commit a99bf0f

Browse files
[llvm-readtapi] Simplify code with StringMap::operator[] (NFC) (#112824)
1 parent 9f264e4 commit a99bf0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/llvm-readtapi/llvm-readtapi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ static void stubifyDirectory(const StringRef InputPath, Context &Ctx) {
325325
continue;
326326
}
327327

328-
auto itr = SymLinks.insert({LinkTarget.c_str(), std::vector<SymLink>()});
329-
itr.first->second.emplace_back(LinkSrc.str(), std::string(SymPath.str()));
328+
SymLinks[LinkTarget.c_str()].emplace_back(LinkSrc.str(),
329+
std::string(SymPath.str()));
330330

331331
continue;
332332
}

0 commit comments

Comments
 (0)