fix crashes on rw

This commit is contained in:
lizzie 2026-03-20 04:28:46 +00:00
parent ccb02490fb
commit 028fc9fe35
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ A32EmitX64::BlockDescriptor A32EmitX64::Emit(IR::Block& block) {
// up to 2 labels per insn
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
shared_labels.reserve(inst_count * 8);
shared_labels.reserve(inst_count * 16);
A32EmitContext ctx{conf, reg_alloc, block, shared_labels};
// Start emitting.

View file

@ -88,7 +88,7 @@ A64EmitX64::BlockDescriptor A64EmitX64::Emit(IR::Block& block) noexcept {
// up to 2 labels per insn
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
shared_labels.reserve(inst_count * 8);
shared_labels.reserve(inst_count * 16);
A64EmitContext ctx{conf, reg_alloc, block, shared_labels};
// Start emitting.