Skip to content

Commit f5180fc

Browse files
[compiler-rt] Silent warning related to memcpy of non trivially-copiable data
1 parent df45524 commit f5180fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/memprof/memprof_rawprofile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void SerializeSegmentsToBuffer(ArrayRef<LoadedModule> Modules,
7373
CHECK(Module.uuid_size() <= MEMPROF_BUILDID_MAX_SIZE);
7474
Entry.BuildIdSize = Module.uuid_size();
7575
memcpy(Entry.BuildId, Module.uuid(), Module.uuid_size());
76-
memcpy(Ptr, &Entry, sizeof(SegmentEntry));
76+
memcpy(Ptr, (void *)&Entry, sizeof(SegmentEntry));
7777
Ptr += sizeof(SegmentEntry);
7878
NumSegmentsRecorded++;
7979
}

0 commit comments

Comments
 (0)