Skip to content

Commit 14706b4

Browse files
committed
Swift: strip parameters from lazy function decl trap names
1 parent e84bdf5 commit 14706b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ static fs::path getFilename(swift::ModuleDecl& module,
5959
std::string ret;
6060
ret += module.getRealName().str();
6161
ret += '_';
62-
llvm::SmallVector<char> scratch;
6362
// lazyDeclaration must be a ValueDecl, as already asserted in SwiftMangler::mangledName
64-
ret += llvm::cast<swift::ValueDecl>(lazyDeclaration)->getName().getString(scratch);
63+
ret += llvm::cast<swift::ValueDecl>(lazyDeclaration)->getBaseName().userFacingName();
6564
ret += '_';
6665
// half a SHA2 is enough
6766
ret += std::string_view(mangled).substr(0, mangled.size() / 2);

0 commit comments

Comments
 (0)