Do not reuse Patch struct for outputting assertions (#2184)

This commit is contained in:
Rangi authored and GitHub committed 2026-10-03 19:24:49 +02:00
1 parent 6c76606839
commit 9095c5b320
9 files changed
+427 -361

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@ static void mergeSections(Section &target, std::unique_ptr<Section> &&other) {
target.data.insert(target.data.end(), RANGE(other->data));
// Adjust patches' PC offsets
for (Patch &patch : other->patches) {
patch.pcOffset += other->offset;
patch.rpn.pcOffset += other->offset;
}
} else if (!target.data.empty()) {
assume(other->size == 0);