Skip to content

Commit 62ce114

Browse files
authored
Merge pull request #79067 from swiftlang/drop-copy-index
indexing: drop duplicated string copy. NFC
2 parents 85faa52 + fafafe4 commit 62ce114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Index/Index.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,7 @@ void index::indexSourceFile(SourceFile *SF, IndexDataConsumer &consumer) {
21552155

21562156
void index::indexModule(ModuleDecl *module, IndexDataConsumer &consumer) {
21572157
assert(module);
2158-
auto mName = module->getRealName().str().str();
2158+
auto mName = module->getRealName().str();
21592159
if (module->getASTContext().blockListConfig.hasBlockListAction(mName,
21602160
BlockListKeyKind::ModuleName,
21612161
BlockListAction::SkipIndexingModule)) {

0 commit comments

Comments
 (0)