Skip to content

Commit d8e8892

Browse files
authored
[NFC][ThinLTO] Avoid temporary std::string (#130353)
Preparation for CFI Index refactoring, which will fix O(N^2) in ThinLTO indexing.
1 parent e4a6e2e commit d8e8892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/LowerTypeTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,9 +1699,9 @@ void LowerTypeTestsModule::buildBitSetsFromFunctionsNative(
16991699

17001700
if (IsExported) {
17011701
if (IsJumpTableCanonical)
1702-
ExportSummary->cfiFunctionDefs().insert(std::string(F->getName()));
1702+
ExportSummary->cfiFunctionDefs().emplace(F->getName());
17031703
else
1704-
ExportSummary->cfiFunctionDecls().insert(std::string(F->getName()));
1704+
ExportSummary->cfiFunctionDecls().emplace(F->getName());
17051705
}
17061706

17071707
if (!IsJumpTableCanonical) {

0 commit comments

Comments
 (0)