summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-09-11 22:19:18 +0000
committerVitaly Buka <vitalybuka@google.com>2019-09-11 22:19:18 +0000
commitd40d1324c710f029866cd872825b728859d3d21f (patch)
treedd5b471b00e32f87e5daf9136d2ab7e55ca95c66
parent8915a0b66469d3052fdbe39268c897c85076359a (diff)
downloadcompiler-rt-d40d1324c710f029866cd872825b728859d3d21f.tar.gz
Fix mac build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371680 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_mac.cpp8
1 files 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 <u32 kLCSegment, typename SegmentCommand>
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;