Merge pull request #7332 from lioncash/cast

Arm64Emitter: Get rid of a pointer cast within SetJumpTarget()
This commit is contained in:
Anthony 2018-08-14 21:00:49 -07:00 committed by GitHub
commit 735277ec7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -969,7 +969,8 @@ void ARM64XEmitter::SetJumpTarget(FixupBranch const& branch)
inst = (0x25 << 26) | MaskImm26(distance);
break;
}
*(u32*)branch.ptr = inst;
std::memcpy(branch.ptr, &inst, sizeof(inst));
}
FixupBranch ARM64XEmitter::CBZ(ARM64Reg Rt)