diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2018-08-14 21:00:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-14 21:00:49 -0700 |
| commit | 735277ec7dee99c4b59cbe6083ee4fbc3078e2f7 (patch) | |
| tree | a49b7bd476ea6ed510da0c1d8bb2b91227f3569b /Source/Core | |
| parent | fb382e90ebe65d23cffc6d927470ca8ad1c3efb4 (diff) | |
| parent | 67b015d76b704de4efa69d921559cc50b512fa25 (diff) | |
Merge pull request #7332 from lioncash/cast
Arm64Emitter: Get rid of a pointer cast within SetJumpTarget()
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/Arm64Emitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Arm64Emitter.cpp b/Source/Core/Common/Arm64Emitter.cpp index 794b97730b..124ae218a2 100644 --- a/Source/Core/Common/Arm64Emitter.cpp +++ b/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) |
