Skip to content

Commit b5d83af

Browse files
committed
Avoid copy of loop temporary
1 parent a983de3 commit b5d83af

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)