forked from OSchip/llvm-project
[libclang] Don't bind a StringRef to a temporary std::string object.
It may end up pointing at garbage. Fixes the MSVC debug build. rdar://11703319 llvm-svn: 159377
This commit is contained in:
parent
27747b57f9
commit
30a2432682
|
@ -369,7 +369,6 @@ static void clang_indexSourceFile_Impl(void *UserData) {
|
||||||
IndexActionCleanup(IndexAction.get());
|
IndexActionCleanup(IndexAction.get());
|
||||||
|
|
||||||
bool Persistent = requestedToGetTU;
|
bool Persistent = requestedToGetTU;
|
||||||
StringRef ResourceFilesPath = CXXIdx->getClangResourcesPath();
|
|
||||||
bool OnlyLocalDecls = false;
|
bool OnlyLocalDecls = false;
|
||||||
bool PrecompilePreamble = false;
|
bool PrecompilePreamble = false;
|
||||||
bool CacheCodeCompletionResults = false;
|
bool CacheCodeCompletionResults = false;
|
||||||
|
@ -393,7 +392,7 @@ static void clang_indexSourceFile_Impl(void *UserData) {
|
||||||
IndexAction.get(),
|
IndexAction.get(),
|
||||||
Unit,
|
Unit,
|
||||||
Persistent,
|
Persistent,
|
||||||
ResourceFilesPath,
|
CXXIdx->getClangResourcesPath(),
|
||||||
OnlyLocalDecls,
|
OnlyLocalDecls,
|
||||||
/*CaptureDiagnostics=*/true,
|
/*CaptureDiagnostics=*/true,
|
||||||
PrecompilePreamble,
|
PrecompilePreamble,
|
||||||
|
|
Loading…
Reference in New Issue