diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-14 12:14:53 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-14 12:14:53 -0500 |
commit | 41ba175c4bcfac35bf55d569a3d06198465ae33e (patch) | |
tree | f8d2797a1eff55076d4f499cdee4a9643c442211 /sdecls_cgen.c | |
parent | ae45eba904bd5fd1008e19630eaf1d384c597545 (diff) |
minor improvements and preparing for struct arguments
Diffstat (limited to 'sdecls_cgen.c')
-rw-r--r-- | sdecls_cgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdecls_cgen.c b/sdecls_cgen.c index 83c978e..e84b459 100644 --- a/sdecls_cgen.c +++ b/sdecls_cgen.c @@ -13,7 +13,7 @@ static bool cgen_sdecls_type(CGenerator *g, Type *type) { if (!(type->flags & TYPE_IS_RESOLVED)) /* non-instance constant fn parameter type */ return true; if (type->kind == TYPE_STRUCT) { - StructDef *sdef = type->struc; + StructDef *sdef = type->struc.def; /* we'll actually define the struct later; here we can just declare it */ if (sdef->flags & STRUCT_DEF_CGEN_DECLARED) { |