- apply asmjit register allocator bugfix

- enable debug builds of asmjit
This commit is contained in:
Magnus Norddahl 2018-10-09 05:17:46 +02:00
parent b7c0cd5d05
commit e66015cce6
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 2.8.7)
make_release_only()
#make_release_only()
project(asmjit C)

View file

@ -3341,7 +3341,7 @@ ASMJIT_INLINE void X86CallAlloc::alloc() {
// allocation tasks by a single 'xchg' instruction, swapping
// two registers required by the instruction/node or one register
// required with another non-required.
if (C == X86Reg::kKindGp) {
if (C == X86Reg::kKindGp && sPhysId != Globals::kInvalidRegId) {
_context->swapGp(aVReg, bVReg);
aTied->flags |= TiedReg::kRDone;