summaryrefslogtreecommitdiffstats
path: root/src/common/assert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/assert.cpp')
-rw-r--r--src/common/assert.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/assert.cpp b/src/common/assert.cpp
index b44570528..a27a025ae 100644
--- a/src/common/assert.cpp
+++ b/src/common/assert.cpp
@@ -11,3 +11,8 @@ void assert_handle_failure() {
Crash();
}
}
+
+[[noreturn]] void unreachable_impl() {
+ Crash();
+ throw std::runtime_error("Unreachable code");
+}