Permalink
Browse files

Merge pull request #7332 from lioncash/cast

Arm64Emitter: Get rid of a pointer cast within SetJumpTarget()
  • Loading branch information...
Helios747 committed Aug 15, 2018
2 parents fb382e9 + 67b015d commit 735277ec7dee99c4b59cbe6083ee4fbc3078e2f7
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/Common/Arm64Emitter.cpp
@@ -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)

0 comments on commit 735277e

Please sign in to comment.