aboutsummaryrefslogtreecommitdiff
path: root/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/index-test/index-test.cpp')
-rw-r--r--tools/index-test/index-test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/index-test/index-test.cpp b/tools/index-test/index-test.cpp
index 8b12c0ba8c..ff9fd54311 100644
--- a/tools/index-test/index-test.cpp
+++ b/tools/index-test/index-test.cpp
@@ -224,11 +224,10 @@ ASTUnit *CreateFromSource(const std::string &Filename, Diagnostic &Diags,
Args.push_back(CompilerArgs[i].c_str());
void *MainAddr = (void*) (intptr_t) CreateFromSource;
- llvm::sys::Path ResourcesPath(
- CompilerInvocation::GetBuiltinIncludePath(Argv0, MainAddr));
- ResourcesPath.eraseComponent();
+ std::string ResourceDir =
+ CompilerInvocation::GetResourcesPath(Argv0, MainAddr);
return ASTUnit::LoadFromCommandLine(Args.data(), Args.data() + Args.size(),
- Diags, ResourcesPath.str());
+ Diags, ResourceDir);
}
int main(int argc, char **argv) {