From e5ba462a5da3ee7e8c89fe2bb76586ad8652e643 Mon Sep 17 00:00:00 2001 From: SachinVin Date: Sat, 18 Apr 2020 14:19:01 +0530 Subject: [PATCH] backend/A64/block_of_code.cpp: Clean up C style casts --- src/backend/A64/block_of_code.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/A64/block_of_code.cpp b/src/backend/A64/block_of_code.cpp index e0bb92e0..8a534c21 100644 --- a/src/backend/A64/block_of_code.cpp +++ b/src/backend/A64/block_of_code.cpp @@ -149,7 +149,7 @@ void BlockOfCode::GenRunCode() { const u8* loop, *enter_fpscr_then_loop; AlignCode16(); - run_code = (RunCodeFuncType) GetWritableCodePtr(); + run_code = reinterpret_cast(GetWritableCodePtr()); // This serves two purposes: // 1. It saves all the registers we as a callee need to save. @@ -169,8 +169,7 @@ void BlockOfCode::GenRunCode() { BR(Arm64Gen::X25); AlignCode16(); - step_code = (RunCodeFuncType) GetWritableCodePtr(); - + step_code = reinterpret_cast(GetWritableCodePtr()); ABI_PushCalleeSaveRegistersAndAdjustStack(*this); MOV(Arm64Gen::X28, ABI_PARAM1);