Skip to content

Commit eb5c4fc

Browse files
author
Marcos Maronas
authored
Move instead of copy. (#3284)
1 parent 251cbb4 commit eb5c4fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/SPIRV/SPIRVWriter.cpp

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

71867186
// Translate the Module into SPIR-V

0 commit comments

Comments
 (0)