We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb1f9a commit b76a58aCopy full SHA for b76a58a
include/swift/AST/Mangle.h
@@ -99,9 +99,8 @@ class Mangler {
99
/// Finish the mangling of the symbol and write the mangled name into
100
/// \p stream.
101
void finalize(llvm::raw_ostream &stream) {
102
- assert(Storage.size() && "Mangling an empty name");
103
- stream.write(Storage.data(), Storage.size());
104
- Storage.clear();
+ std::string result = finalize();
+ stream.write(result.data(), result.size());
105
}
106
107
void setModuleContext(ModuleDecl *M) { Mod = M; }
0 commit comments