From d40d1324c710f029866cd872825b728859d3d21f Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 11 Sep 2019 22:19:18 +0000 Subject: Fix mac build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371680 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_procmaps_mac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/sanitizer_common/sanitizer_procmaps_mac.cpp b/lib/sanitizer_common/sanitizer_procmaps_mac.cpp index 2f86843c2..d02afcfe8 100644 --- a/lib/sanitizer_common/sanitizer_procmaps_mac.cpp +++ b/lib/sanitizer_common/sanitizer_procmaps_mac.cpp @@ -183,7 +183,7 @@ template static bool NextSegmentLoad(MemoryMappedSegment *segment, MemoryMappedSegmentData *seg_data, MemoryMappingLayoutData *layout_data) { - const char *lc = layout_data.current_load_cmd_addr; + const char *lc = layout_data->current_load_cmd_addr; layout_data->current_load_cmd_addr += ((const load_command *)lc)->cmdsize; if (((const load_command *)lc)->cmd == kLCSegment) { const SegmentCommand* sc = (const SegmentCommand *)lc; @@ -227,11 +227,11 @@ static bool NextSegmentLoad(MemoryMappedSegment *segment, if (segment->filename) { const char *src = (layout_data->current_image == kDyldImageIdx) ? kDyldPath - : _dyld_get_image_name(layout_data.current_image); + : _dyld_get_image_name(layout_data->current_image); internal_strncpy(segment->filename, src, segment->filename_size); } - segment->arch = layout_data.current_arch; - internal_memcpy(segment->uuid, layout_data.current_uuid, kModuleUUIDSize); + segment->arch = layout_data->current_arch; + internal_memcpy(segment->uuid, layout_data->current_uuid, kModuleUUIDSize); return true; } return false; -- cgit v1.2.1