Commit 62d5b4b0 authored by Carl Worth's avatar Carl Worth
Browse files

util: Make unreachable at least be an assert

Previously, if __builtin_unreachable() was unavailable, the
unreachable macro was defined to do nothing. We do better here, by at
least still making it an assert.
Reviewed-by: default avatarIan Romanick <>
parent f87ffd5c
......@@ -82,7 +82,7 @@ do { \
#ifndef unreachable
#define unreachable(str)
#define unreachable(str) assert(!str)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment