Skip to content

Commit c97b79f

Browse files
committed
format
1 parent 2f3f3cf commit c97b79f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ static void NextSectionLoad(LoadedModule *module, MemoryMappedSegmentData *data,
5656
sc->sectname);
5757
}
5858

59-
static bool VerifyMemoryMapping(MemoryMappingLayout *mapping) {
59+
static bool VerifyMemoryMapping(MemoryMappingLayout* mapping) {
6060
InternalMmapVector<LoadedModule> modules;
61-
modules.reserve(128); // matches DumpProcessMap
61+
modules.reserve(128); // matches DumpProcessMap
6262
mapping->DumpListOfModules(&modules);
6363

6464
InternalMmapVector<LoadedModule::AddressRange> segments;
6565
for (uptr i = 0; i < modules.size(); ++i) {
66-
for (auto &range : modules[i].ranges()) {
66+
for (auto& range : modules[i].ranges()) {
6767
segments.push_back(range);
6868
}
6969
}
@@ -86,7 +86,8 @@ static bool VerifyMemoryMapping(MemoryMappingLayout *mapping) {
8686
if (cur_start < prev_end) {
8787
well_formed = false;
8888
VReport(2, "Overlapping mappings: %s start = %p, %s end = %p\n",
89-
segments[i].name, (void*)cur_start, segments[i-1].name, (void*)prev_end);
89+
segments[i].name, (void*)cur_start, segments[i - 1].name,
90+
(void*)prev_end);
9091
if (!invalid_module_map_reported) {
9192
Report(
9293
"WARN: Invalid dyld module map detected. This is most likely a bug "
@@ -101,7 +102,6 @@ static bool VerifyMemoryMapping(MemoryMappingLayout *mapping) {
101102
return well_formed;
102103
}
103104

104-
105105
void MemoryMappedSegment::AddAddressRanges(LoadedModule *module) {
106106
// Don't iterate over sections when the caller hasn't set up the
107107
// data pointer, when there are no sections, or when the segment

0 commit comments

Comments
 (0)