From da250551336d916ad0058bf200e1f0b29ccb2a8f Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 4 Feb 2022 22:04:52 -0500 Subject: Add unreachable instruction for switch statements with an unreachable default --- binaryninjacore.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'binaryninjacore.h') diff --git a/binaryninjacore.h b/binaryninjacore.h index 587e5920..fe5a984a 100644 --- a/binaryninjacore.h +++ b/binaryninjacore.h @@ -36,14 +36,14 @@ // Current ABI version for linking to the core. This is incremented any time // there are changes to the API that affect linking, including new functions, // new types, or modifications to existing functions or types. -#define BN_CURRENT_CORE_ABI_VERSION 21 +#define BN_CURRENT_CORE_ABI_VERSION 22 // Minimum ABI version that is supported for loading of plugins. Plugins that // are linked to an ABI version less than this will not be able to load and // will require rebuilding. The minimum version is increased when there are // incompatible changes that break binary compatibility, such as changes to // existing types or functions. -#define BN_MINIMUM_CORE_ABI_VERSION 20 +#define BN_MINIMUM_CORE_ABI_VERSION 22 #ifdef __GNUC__ #ifdef BINARYNINJACORE_LIBRARY @@ -1276,6 +1276,10 @@ extern "C" HLIL_FCMP_O, HLIL_FCMP_UO, + // Unreachable hint, typically used in switch statements that analysis knows + // has an unreachable default. + HLIL_UNREACHABLE, + // The following instructions are only used in SSA form HLIL_WHILE_SSA, HLIL_DO_WHILE_SSA, -- cgit v1.3.1