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:
@@ -82,7 +82,7 @@ do { \
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef unreachable
|
#ifndef unreachable
|
||||||
#define unreachable(str)
|
#define unreachable(str) assert(!str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user