summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2022-02-04 22:04:52 -0500
committerRusty Wagner <rusty.wagner@gmail.com>2022-06-22 17:38:21 -0400
commitda250551336d916ad0058bf200e1f0b29ccb2a8f (patch)
treece0bd66003e2eda8f3b8ebc63bc623d265410df5 /binaryninjacore.h
parent63e72efd13b31c1d2061b978e2a5f4688e7ba4fd (diff)
Add unreachable instruction for switch statements with an unreachable default
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h8
1 files changed, 6 insertions, 2 deletions
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,