mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 04:17:17 +08:00
Make sure that if a UUID was passed in, and we found a match, that should be enough for us.
llvm-svn: 153076
This commit is contained in:
@@ -613,6 +613,9 @@ ModuleList::GetSharedModule
|
||||
for (uint32_t module_idx = 0; module_idx < num_matching_modules; ++module_idx)
|
||||
{
|
||||
module_sp = matching_module_list.GetModuleAtIndex(module_idx);
|
||||
// If we had a UUID and we found a match, then that is good enough for a match
|
||||
if (uuid_ptr)
|
||||
break;
|
||||
if (module_file_spec)
|
||||
{
|
||||
// If we didn't have a UUID in mind when looking for the object file,
|
||||
|
||||
Reference in New Issue
Block a user