We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df45524 commit f5180fcCopy full SHA for f5180fc
compiler-rt/lib/memprof/memprof_rawprofile.cpp
@@ -73,7 +73,7 @@ void SerializeSegmentsToBuffer(ArrayRef<LoadedModule> Modules,
73
CHECK(Module.uuid_size() <= MEMPROF_BUILDID_MAX_SIZE);
74
Entry.BuildIdSize = Module.uuid_size();
75
memcpy(Entry.BuildId, Module.uuid(), Module.uuid_size());
76
- memcpy(Ptr, &Entry, sizeof(SegmentEntry));
+ memcpy(Ptr, (void *)&Entry, sizeof(SegmentEntry));
77
Ptr += sizeof(SegmentEntry);
78
NumSegmentsRecorded++;
79
}
0 commit comments