diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp index 3a3c8ef654dcc..7fe0de19f0256 100644 --- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp @@ -1699,9 +1699,9 @@ void LowerTypeTestsModule::buildBitSetsFromFunctionsNative( if (IsExported) { if (IsJumpTableCanonical) - ExportSummary->cfiFunctionDefs().insert(std::string(F->getName())); + ExportSummary->cfiFunctionDefs().emplace(F->getName()); else - ExportSummary->cfiFunctionDecls().insert(std::string(F->getName())); + ExportSummary->cfiFunctionDecls().emplace(F->getName()); } if (!IsJumpTableCanonical) {