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: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Carl Worth
2014-12-05 08:05:44 -08:00
parent f87ffd5cc3
commit 62d5b4b03a

View File

@@ -82,7 +82,7 @@ do { \
#endif
#ifndef unreachable
#define unreachable(str)
#define unreachable(str) assert(!str)
#endif
/**