mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-03 06:38:53 +00:00
Arm64Emitter: extract lambda to AddImmediate()
Fixes warning: ``` Source/Core/Common/Arm64Emitter.cpp:4108:31: error: declaration shadows a local variable [-Werror,-Wshadow] auto addi = [this](ARM64Reg Rd, ARM64Reg Rn, u64 imm, bool shift, bool negative, bool flags) { ^ /var/lib/buildbot/slave/pr-android/build/Source/Core/Common/Arm64Emitter.cpp:4105:46: note: previous declaration is here void ARM64XEmitter::ADDI2R_internal(ARM64Reg Rd, ARM64Reg Rn, u64 imm, bool negative, bool flags, ^ ```
This commit is contained in:
parent
c58ba93503
commit
3d7bace9da
2 changed files with 29 additions and 26 deletions
|
@ -505,6 +505,7 @@ private:
|
|||
u8* m_code;
|
||||
u8* m_lastCacheFlushEnd;
|
||||
|
||||
void AddImmediate(ARM64Reg Rd, ARM64Reg Rn, u64 imm, bool shift, bool negative, bool flags);
|
||||
void EncodeCompareBranchInst(u32 op, ARM64Reg Rt, const void* ptr);
|
||||
void EncodeTestBranchInst(u32 op, ARM64Reg Rt, u8 bits, const void* ptr);
|
||||
void EncodeUnconditionalBranchInst(u32 op, const void* ptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue