mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
stdatomic: fix is_memory_model check
This commit is contained in:
parent
1c255baad5
commit
9d862be1e7
3
tccgen.c
3
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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user