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 e84bdf5 commit 14706b4Copy full SHA for 14706b4
swift/extractor/SwiftExtractor.cpp
@@ -59,9 +59,8 @@ static fs::path getFilename(swift::ModuleDecl& module,
59
std::string ret;
60
ret += module.getRealName().str();
61
ret += '_';
62
- llvm::SmallVector<char> scratch;
63
// lazyDeclaration must be a ValueDecl, as already asserted in SwiftMangler::mangledName
64
- ret += llvm::cast<swift::ValueDecl>(lazyDeclaration)->getName().getString(scratch);
+ ret += llvm::cast<swift::ValueDecl>(lazyDeclaration)->getBaseName().userFacingName();
65
66
// half a SHA2 is enough
67
ret += std::string_view(mangled).substr(0, mangled.size() / 2);
0 commit comments