Handling strict conversion criteria for StringRef to std::string from TOT llvm.

This commit is contained in:
Puyan Lotfi
2020-02-10 18:23:20 -05:00
committed by Michael Forster
parent f769d638c7
commit 8132596e83

View File

@@ -906,7 +906,7 @@ static bool passCursorInfoForDecl(SourceFile* SF,
if (ClangMod)
ModuleName = ClangMod->getFullModuleName();
} else if (VD->getModuleContext() != MainModule) {
ModuleName = VD->getModuleContext()->getName().str();
ModuleName = VD->getModuleContext()->getName().str().str();
}
StringRef ModuleInterfaceName;
if (auto IFaceGenRef = Lang.getIFaceGenContexts().find(ModuleName, Invok))