Skip to content

Commit 149fc5c

Browse files
committed
AST: Fix incorrect handling of @_originallyDefinedIn(module: "Swift", ...)
1 parent c2737ab commit 149fc5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTMangler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ void ASTMangler::appendModule(const ModuleDecl *module,
27692769

27702770
// Try the special 'swift' substitution.
27712771
if (ModName == STDLIB_NAME) {
2772-
if (useModuleName.empty()) {
2772+
if (useModuleName.empty() || useModuleName == STDLIB_NAME) {
27732773
appendOperator("s");
27742774
} else if (!RespectOriginallyDefinedIn) {
27752775
appendOperator("s");

0 commit comments

Comments
 (0)