Skip to content

Commit f99f6b5

Browse files
maarquitos14jsji
authored andcommitted
Use move to prevent copy (#2761)
Signed-off-by: Marcos Maronas <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@ee130659c16e2d3
1 parent 02a0c48 commit f99f6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/LLVMSPIRVOpts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ std::vector<std::string> TranslatorOpts::getAllowedSPIRVExtensionNames(
8585
continue;
8686
std::string ExtName;
8787
SPIRVMap<ExtensionID, std::string>::find(It.first, &ExtName);
88-
AllowExtNames.push_back(ExtName);
88+
AllowExtNames.emplace_back(ExtName);
8989
}
9090
return AllowExtNames;
9191
}

0 commit comments

Comments
 (0)