aboutsummaryrefslogtreecommitdiff
path: root/src/parse.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.cff')
-rw-r--r--src/parse.cff1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.cff b/src/parse.cff
index 0eb251d..3512c96 100644
--- a/src/parse.cff
+++ b/src/parse.cff
@@ -2584,6 +2584,7 @@ fn parsefn(P *Parser, loc Loc, toplevel bool, externp bool, name *const u8) *Dec
Fn.id = ++id;
// TODO tlalloc necessary for templates. but it leaks some memory
let decl = putdecl_alloc(P, P.tlalloc, loc, decl);
+ let Fn = &decl.u.Fn;
decl.toplevel = toplevel;
if !lexmatch(P, #null, '{') {