emit_x64: align before emitting blocks
This commit is contained in:
parent
41c8dabf0b
commit
7912a79fa5
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,7 @@ EmitX64::BlockDescriptor EmitX64::Emit(IR::Block& block) {
|
|||
|
||||
reg_alloc.Reset();
|
||||
|
||||
code->int3();
|
||||
code->align();
|
||||
const CodePtr code_ptr = code->getCurr();
|
||||
basic_blocks[descriptor].code_ptr = code_ptr;
|
||||
unique_hash_to_code_ptr[descriptor.UniqueHash()] = code_ptr;
|
||||
|
@ -80,6 +80,7 @@ EmitX64::BlockDescriptor EmitX64::Emit(IR::Block& block) {
|
|||
|
||||
EmitAddCycles(block.CycleCount());
|
||||
EmitTerminal(block.GetTerminal(), block.Location());
|
||||
code->int3();
|
||||
|
||||
reg_alloc.AssertNoMoreUses();
|
||||
|
||||
|
|
Loading…
Reference in a new issue