Skip to content

Commit

Permalink
Use move to prevent copy (#2761)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Maronas <marcos.maronas@intel.com>
  • Loading branch information
maarquitos14 authored Oct 16, 2024
1 parent 20eeca9 commit ee13065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SPIRV/LLVMSPIRVOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ std::vector<std::string> TranslatorOpts::getAllowedSPIRVExtensionNames(
continue;
std::string ExtName;
SPIRVMap<ExtensionID, std::string>::find(It.first, &ExtName);
AllowExtNames.push_back(ExtName);
AllowExtNames.emplace_back(ExtName);
}
return AllowExtNames;
}

0 comments on commit ee13065

Please sign in to comment.