From 9d862be1e708875f3ebe818bb63044903b08d02c Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 28 Jan 2021 00:13:07 +0300 Subject: [PATCH] stdatomic: fix is_memory_model check --- tccgen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tccgen.c b/tccgen.c index 5f7c16d8..7c4b7557 100644 --- a/tccgen.c +++ b/tccgen.c @@ -5749,8 +5749,7 @@ static inline int is_memory_model(const SValue *sv) * Ideally we should check whether the model matches 1:1. * If it is possible, we should check by the name of the value. */ -int t = 0; // XXX: HACK - return (((t & VT_BTYPE) == VT_INT) && (sv->c.i < 6)); + return (((sv->type.t & VT_BTYPE) == VT_INT) && (sv->c.i < 6)); } static void parse_atomic(int atok)