Skip to content

Commit 8132596

Browse files
plotfiMForster
authored andcommitted
Handling strict conversion criteria for StringRef to std::string from TOT llvm.
1 parent f769d63 commit 8132596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ static bool passCursorInfoForDecl(SourceFile* SF,
906906
if (ClangMod)
907907
ModuleName = ClangMod->getFullModuleName();
908908
} else if (VD->getModuleContext() != MainModule) {
909-
ModuleName = VD->getModuleContext()->getName().str();
909+
ModuleName = VD->getModuleContext()->getName().str().str();
910910
}
911911
StringRef ModuleInterfaceName;
912912
if (auto IFaceGenRef = Lang.getIFaceGenContexts().find(ModuleName, Invok))

0 commit comments

Comments
 (0)