stdatomic: fix is_memory_model check

This commit is contained in:
Dmitry Selyutin 2021-01-28 00:13:07 +03:00
parent 1c255baad5
commit 9d862be1e7

View file

@ -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)