History

stdatomic: fix is_memory_model check

Dmitry Selyutin committed 5 years ago

Commit 9d862be1 parent 1c255ba1 file · +1 −2Browse files

Unified · Split

tccgen.c+1−2
@@ -5749,8 +5749,7 @@ static inline int is_memory_model(const SValue *sv) · 5748 unmodified lines
5749 * Ideally we should check whether the model matches 1:1.5749 * Ideally we should check whether the model matches 1:1.
5750 * If it is possible, we should check by the name of the value.5750 * If it is possible, we should check by the name of the value.
5751 */5751 */
5752int t = 0; // XXX: HACK5752 return (((sv->type.t & VT_BTYPE) == VT_INT) && (sv->c.i < 6));
5753 return (((t & VT_BTYPE) == VT_INT) && (sv->c.i < 6));
5754}5753}
5755 5754
5756static void parse_atomic(int atok)5755static void parse_atomic(int atok)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t