We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8759a commit cd2909eCopy full SHA for cd2909e
lib/IRGen/GenProto.cpp
@@ -3538,7 +3538,7 @@ llvm::Constant *IRGenModule::getAddrOfGenericEnvironment(
3538
llvm::SmallVector<uint16_t, 4> genericParamCounts;
3539
unsigned curDepth = 0;
3540
unsigned genericParamCount = 0;
3541
- for (const auto gp : signature.getGenericParams()) {
+ for (const auto &gp : signature.getGenericParams()) {
3542
if (curDepth != gp->getDepth()) {
3543
genericParamCounts.push_back(genericParamCount);
3544
curDepth = gp->getDepth();
0 commit comments