Skip to content

Commit db237bc

Browse files
Merge pull request #72096 from adrian-prantl/reference-loop
Avoid copy of loop temporary
2 parents 279e147 + b5d83af commit db237bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenDebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
758758
// The function return type is the first element in the list.
759759
createParameterType(Parameters, getResultTypeForDebugInfo(IGM, FnTy));
760760

761-
for (auto Param : FnTy->getParameters())
761+
for (auto &Param : FnTy->getParameters())
762762
createParameterType(
763763
Parameters, IGM.silConv.getSILType(
764764
Param, FnTy, IGM.getMaximalTypeExpansionContext()));

0 commit comments

Comments
 (0)