mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Fix TestLoadUnload.test_load_unload for android API > 21
* Change Module::MatchesModuleSpec to return true in case the file spec in the specified module spec matches with the platform file spec, but not with the local file spec * Change the module_resolver used when resolving a remote shared module to always set the platform file spec to the file spec requested Differential revision: http://reviews.llvm.org/D12601 llvm-svn: 246852
This commit is contained in:
@@ -272,8 +272,11 @@ Platform::GetSharedModule (const ModuleSpec &module_spec,
|
||||
module_sp,
|
||||
[&](const ModuleSpec &spec)
|
||||
{
|
||||
return ModuleList::GetSharedModule (
|
||||
Error error = ModuleList::GetSharedModule (
|
||||
spec, module_sp, module_search_paths_ptr, old_module_sp_ptr, did_create_ptr, false);
|
||||
if (error.Success() && module_sp)
|
||||
module_sp->SetPlatformFileSpec(spec.GetFileSpec());
|
||||
return error;
|
||||
},
|
||||
did_create_ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user