Skip to content

Commit 02a6219

Browse files
committed
[nfc] Re-factor logic in resolveConcreteDeclRef into separate static functions.
1 parent ba868ea commit 02a6219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/CSApply.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Solution::computeSubstitutions(GenericSignature sig,
112112
// On Windows and 32-bit platforms we need to force "Int" to actually be
113113
// re-imported as "Int." This is needed because otherwise, we cannot round-trip
114114
// "Int" and "UInt". For example, on Windows, "Int" will be imported into C++ as
115-
// "long long" and then back into Swift as "Int64" not "Int."
115+
// "long long" and then back into Swift as "Int64" not "Int."
116116
static ValueDecl *rewriteIntegerTypes(SubstitutionMap subst, ValueDecl *oldDecl,
117117
AbstractFunctionDecl *newDecl) {
118118
auto originalFnSubst = cast<AbstractFunctionDecl>(oldDecl)
@@ -172,6 +172,7 @@ static ValueDecl *rewriteIntegerTypes(SubstitutionMap subst, ValueDecl *oldDecl,
172172
newFnDecl->setSelfAccessKind(func->getSelfAccessKind());
173173
newFnDecl->setSelfIndex(func->getSelfIndex());
174174
}
175+
175176
return newFnDecl;
176177
}
177178
}

0 commit comments

Comments
 (0)