Explicitly encode assumption that an overlapping section exists

This commit is contained in:
Rangi
2026-07-13 17:47:38 -04:00
parent 417b5212d4
commit 08354cf573
+3 -1
View File
@@ -305,10 +305,12 @@ static void placeSection(Section &section) {
);
} else {
// Otherwise there is overlap with another section
Section const *overlap = out_OverlappingSection(section);
assume(overlap != nullptr);
fatal(
"Unable to place %s: section overlaps with \"%s\"",
getSectionDescription(section).c_str(),
out_OverlappingSection(section)->name.c_str()
overlap->name.c_str()
);
}
}