Update FileSpec constructor signature

llvm-svn: 346449
This commit is contained in:
Jonas Devlieghere 2018-11-08 23:21:00 +00:00
parent 8c7b78767a
commit 7010ef34d5
1 changed files with 5 additions and 2 deletions

View File

@ -40,8 +40,11 @@ FileSpec HostInfoAndroid::ResolveLibraryPath(const std::string &module_path,
static const char *const default_lib64_path[] = {"/vendor/lib64",
"/system/lib64", nullptr};
if (module_path.empty() || module_path[0] == '/')
return FileSpec(module_path.c_str(), true);
if (module_path.empty() || module_path[0] == '/') {
FileSpec file_spec(module_path.c_str());
FileSystem::Instance().Resolve(file_spec);
return file_spec;
}
SmallVector<StringRef, 4> ld_paths;