Skip to content

Commit 36b488a

Browse files
maarquitos14sys-ce-bb
authored andcommitted
Move instead of copy. (#3284)
Original commit: KhronosGroup/SPIRV-LLVM-Translator@eb5c4fc89035818
1 parent d00187d commit 36b488a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7184,7 +7184,7 @@ bool runSpirvBackend(Module *M, std::string &Result, std::string &ErrMsg,
71847184
TargetTriple.setTriple(DefaultTriple);
71857185
TargetTriple.setArch(TargetTriple.getArch(),
71867186
spirvVersionToSubArch(TranslatorOpts.getMaxVersion()));
7187-
M->setTargetTriple(TargetTriple);
7187+
M->setTargetTriple(std::move(TargetTriple));
71887188
}
71897189

71907190
// Translate the Module into SPIR-V

0 commit comments

Comments
 (0)