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:
Greg Clayton
2012-03-20 01:31:19 +00:00
parent 2b1bc868a0
commit 9ff1ba2546

View File

@@ -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,