Skip to content

Commit e34647c

Browse files
jgstarIntelsys-ce-bb
authored andcommitted
optimizing away pair type object copy in spv writer
Original commit: KhronosGroup/SPIRV-LLVM-Translator@3448740
1 parent fdcee20 commit e34647c

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
@@ -1198,7 +1198,7 @@ void LLVMToSPIRVBase::transAuxDataInst(SPIRVFunction *BF, Function *F) {
11981198
SmallVector<StringRef> MDNames;
11991199
F->getContext().getMDKindNames(MDNames);
12001200
F->getAllMetadata(AllMD);
1201-
for (auto MD : AllMD) {
1201+
for (const auto &MD : AllMD) {
12021202
std::string MDName = MDNames[MD.first].str();
12031203

12041204
// spirv.Decorations and spirv.ParameterDecorations are handled

0 commit comments

Comments
 (0)