summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-07-10 16:23:31 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-07-10 16:23:31 -0400
commit3080d1149ad3838f053d5d4faad25f24555337ef (patch)
tree429c4f079f4d793128f0d16a48034b27bbc67863 /types.h
parent4fcae53ed9180dfbb41c922540e7db769bd118d8 (diff)
fixed problem unveiled by making types smaller
Diffstat (limited to 'types.h')
-rw-r--r--types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.h b/types.h
index b8c1026..2f6946d 100644
--- a/types.h
+++ b/types.h
@@ -648,11 +648,11 @@ enum {
typedef struct FnExpr {
Location where;
Block *declaration_block; /* block wherein this function is declared */
+ U64 instance_id; /* 0 if not an instance. needs to be available even for #foreign functions */
union {
struct {
struct Declaration *params; /* declarations of the parameters to this function */
struct Declaration *ret_decls; /* array of decls, if this has named return values. otherwise, NULL */
- U64 instance_id; /* 0 if not an instance */
Type ret_type;
Block body;
};