Skip to content

Commit 48de949

Browse files
authored
Merge pull request swiftlang#41516 from compnerd/remote-is-local
IRGen: address TODO for Windows static linking
2 parents d4b303e + c83f65f commit 48de949

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,11 +2212,9 @@ LinkInfo LinkInfo::get(const UniversalLinkageInfo &linkInfo, StringRef name,
22122212
SILLinkage linkage, ForDefinition_t isDefinition,
22132213
bool isWeakImported) {
22142214
LinkInfo result;
2215-
2216-
// TODO(compnerd) handle this properly
2217-
22182215
result.Name += name;
2219-
result.IRL = getIRLinkage(linkInfo, linkage, isDefinition, isWeakImported);
2216+
result.IRL = getIRLinkage(linkInfo, linkage, isDefinition, isWeakImported,
2217+
linkInfo.Internalize);
22202218
result.ForDefinition = isDefinition;
22212219
return result;
22222220
}

0 commit comments

Comments
 (0)