Skip to content

Commit

Permalink
OpcodeDispatcher: Assert on invalid size to SelectPairAddressMode
Browse files Browse the repository at this point in the history
Coverity scan
  • Loading branch information
Sonicadvance1 committed Jan 3, 2025
1 parent 832d77b commit 0beb71d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FEXCore/Source/Interface/Core/OpcodeDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -2427,6 +2427,7 @@ class OpDispatchBuilder final : public IREmitter {
}

AddressMode SelectPairAddressMode(AddressMode A, IR::OpSize Size) {
LOGMAN_THROW_AA_FMT(Size != IR::OpSize::iUnsized, "Invalid size!");
const auto SizeInt = IR::OpSizeToSize(Size);
AddressMode Out {};

Expand Down

0 comments on commit 0beb71d

Please sign in to comment.