Skip to content

Commit fb89229

Browse files
author
Harlan Haskins
authored
Merge pull request swiftlang#27970 from harlanhaskins/let-me-speak-to-your-mangler
[TBDGen] Add the unmangled name to the IR-not-TBD diff list
2 parents 7b90628 + 7ca3876 commit fb89229

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/FrontendTool/TBD.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ static bool validateSymbolSet(DiagnosticEngine &diags,
102102
if (!GV->isDeclaration() && externallyVisible) {
103103
// Is it listed?
104104
if (!symbols.erase(name))
105-
irNotTBD.push_back(name);
105+
// Note: Add the unmangled name to the irNotTBD list, which is owned
106+
// by the IRModule, instead of the mangled name.
107+
irNotTBD.push_back(unmangledName);
106108
}
107109
} else {
108110
assert(symbols.find(name) == symbols.end() &&

0 commit comments

Comments
 (0)