Skip to content

Commit 3dd5ef7

Browse files
jgstarInteljsji
authored andcommitted
optimizing away pair type object copy in spv writer
Original commit: KhronosGroup/SPIRV-LLVM-Translator@3448740
1 parent ad56aea commit 3dd5ef7

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

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

0 commit comments

Comments
 (0)