Fix a pointer arithmetic thinko in ObjectFileMachO::GetLLDBSharedCacheUUID().

llvm-svn: 179643
This commit is contained in:
Jason Molenda
2013-04-16 22:56:17 +00:00
parent 1d712fe52d
commit 42b69fa89f

View File

@@ -4045,7 +4045,7 @@ ObjectFileMachO::GetLLDBSharedCacheUUID ()
uint32_t *version = (uint32_t*) dyld_all_image_infos_address; // version <mach-o/dyld_images.h>
if (*version >= 13)
{
uuid_t *sharedCacheUUID_address = (uuid_t*) dyld_all_image_infos_address + 84; // sharedCacheUUID <mach-o/dyld_images.h>
uuid_t *sharedCacheUUID_address = (uuid_t*) ((uint8_t*) dyld_all_image_infos_address + 84); // sharedCacheUUID <mach-o/dyld_images.h>
uuid.SetBytes (sharedCacheUUID_address);
}
}