Arm64Emitter/x64Emitter: Use nodiscard for FixupBranch

This should prevent future occurrences of the type of problem that was
fixed in b713042.
This commit is contained in:
JosJuice
2023-06-18 09:10:09 +02:00
parent 44498872e9
commit 39a8219767
2 changed files with 11 additions and 11 deletions

View File

@ -450,7 +450,7 @@ public:
void RET();
void RET_FAST();
void UD2();
FixupBranch J(Jump jump = Jump::Short);
[[nodiscard]] FixupBranch J(Jump jump = Jump::Short);
void JMP(const u8* addr, Jump jump = Jump::Short);
void JMPptr(const OpArg& arg);
@ -459,10 +459,10 @@ public:
#undef CALL
#endif
void CALL(const void* fnptr);
FixupBranch CALL();
[[nodiscard]] FixupBranch CALL();
void CALLptr(OpArg arg);
FixupBranch J_CC(CCFlags conditionCode, Jump jump = Jump::Short);
[[nodiscard]] FixupBranch J_CC(CCFlags conditionCode, Jump jump = Jump::Short);
void J_CC(CCFlags conditionCode, const u8* addr);
void SetJumpTarget(const FixupBranch& branch);