forked from weaselab/conflict-set
Fix SHOW_MEMORY for gcc and glibc on linux
This commit is contained in:
+3
-1
@@ -47,7 +47,9 @@ limitations under the License.
|
||||
#if __has_builtin(__builtin_assume)
|
||||
#define assume(e) __builtin_assume(e)
|
||||
#else
|
||||
#define assume(e) __attribute__((assume(e)))
|
||||
#define assume(e) \
|
||||
if (!(e)) \
|
||||
__builtin_unreachable()
|
||||
#endif
|
||||
#else
|
||||
#define assume assert
|
||||
|
||||
Reference in New Issue
Block a user