stdatomic: fix is_memory_model check
This commit is contained in:
parent
1c255baad5
commit
9d862be1e7
1 changed files with 1 additions and 2 deletions
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.
|
* Ideally we should check whether the model matches 1:1.
|
||||||
* If it is possible, we should check by the name of the value.
|
* If it is possible, we should check by the name of the value.
|
||||||
*/
|
*/
|
||||||
int t = 0; // XXX: HACK
|
return (((sv->type.t & VT_BTYPE) == VT_INT) && (sv->c.i < 6));
|
||||||
return (((t & VT_BTYPE) == VT_INT) && (sv->c.i < 6));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_atomic(int atok)
|
static void parse_atomic(int atok)
|
||||||
|
|
Loading…
Reference in a new issue