mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-13 17:28:35 +02:00
fix crashes on rw
This commit is contained in:
parent
ccb02490fb
commit
028fc9fe35
2 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ A32EmitX64::BlockDescriptor A32EmitX64::Emit(IR::Block& block) {
|
||||||
|
|
||||||
// up to 2 labels per insn
|
// up to 2 labels per insn
|
||||||
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
|
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};
|
A32EmitContext ctx{conf, reg_alloc, block, shared_labels};
|
||||||
|
|
||||||
// Start emitting.
|
// Start emitting.
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ A64EmitX64::BlockDescriptor A64EmitX64::Emit(IR::Block& block) noexcept {
|
||||||
|
|
||||||
// up to 2 labels per insn
|
// up to 2 labels per insn
|
||||||
if (auto const inst_count = block.instructions.size(); inst_count > shared_labels.capacity())
|
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};
|
A64EmitContext ctx{conf, reg_alloc, block, shared_labels};
|
||||||
|
|
||||||
// Start emitting.
|
// Start emitting.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue