Skip to content

Commit dc3b0e6

Browse files
committed
AST: Fix incorrect handling of @_originallyDefinedIn(module: "Swift", ...)
1 parent 7a7fc2d commit dc3b0e6

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

27052705
// Try the special 'swift' substitution.
27062706
if (ModName == STDLIB_NAME) {
2707-
if (useModuleName.empty()) {
2707+
if (useModuleName.empty() || useModuleName == STDLIB_NAME) {
27082708
appendOperator("s");
27092709
} else if (!RespectOriginallyDefinedIn) {
27102710
appendOperator("s");

0 commit comments

Comments
 (0)