Skip to content

Commit 37d867f

Browse files
committed
AST: Fix incorrect handling of @_originallyDefinedIn(module: "Swift", ...)
1 parent fa41c70 commit 37d867f

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
@@ -2781,7 +2781,7 @@ void ASTMangler::appendModule(const ModuleDecl *module,
27812781

27822782
// Try the special 'swift' substitution.
27832783
if (ModName == STDLIB_NAME) {
2784-
if (useModuleName.empty()) {
2784+
if (useModuleName.empty() || useModuleName == STDLIB_NAME) {
27852785
appendOperator("s");
27862786
} else if (!RespectOriginallyDefinedIn) {
27872787
appendOperator("s");

0 commit comments

Comments
 (0)