fix crashes on rw

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

View file

@ -115,7 +115,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

@ -89,7 +89,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.