From 0beb71d52ed962c0ab6cfc9097c903658733fb70 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Fri, 3 Jan 2025 10:46:52 -0800 Subject: [PATCH] OpcodeDispatcher: Assert on invalid size to SelectPairAddressMode Coverity scan --- FEXCore/Source/Interface/Core/OpcodeDispatcher.h | 1 + 1 file changed, 1 insertion(+) diff --git a/FEXCore/Source/Interface/Core/OpcodeDispatcher.h b/FEXCore/Source/Interface/Core/OpcodeDispatcher.h index 4c88a19f85..a1831eaed2 100644 --- a/FEXCore/Source/Interface/Core/OpcodeDispatcher.h +++ b/FEXCore/Source/Interface/Core/OpcodeDispatcher.h @@ -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 {};