diff options
author | Michael Forney <mforney@mforney.org> | 2024-04-19 23:51:25 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2024-04-20 01:53:14 -0700 |
commit | 7837920950b4afc06cff96d04f27149866251378 (patch) | |
tree | e8a7ad52a43acdc7e71793865513cf1f0d7a8aed /eval.c | |
parent | 7b2ef1d8f8bb24376c5a79b1a9acec19dfe780f4 (diff) |
qbe: Pass struct decl to mkglobal instead of fields from the decl
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ eval(struct expr *expr) if (expr->u.compound.storage != SDSTATIC) break; d = mkdecl(NULL, DECLOBJECT, t, expr->qual, LINKNONE); - d->value = mkglobal(NULL, true, false); + d->value = mkglobal(d); emitdata(d, expr->u.compound.init); expr->kind = EXPRIDENT; expr->u.ident.decl = d; |