diff options
| -rw-r--r-- | bootstrap/.gitignore | 1 | ||||
| -rwxr-xr-x | bootstrap/cff2 | bin | 469728 -> 469728 bytes | |||
| -rw-r--r-- | src/cffc.hff | 3 | ||||
| -rw-r--r-- | src/parse.cff | 5 |
4 files changed, 2 insertions, 7 deletions
diff --git a/bootstrap/.gitignore b/bootstrap/.gitignore index 7259ead..cbff1fc 100644 --- a/bootstrap/.gitignore +++ b/bootstrap/.gitignore @@ -2,6 +2,7 @@ compile_commands.json a.out cff0 cff1 +cff2 .gdb_history .cache/ obj1/ diff --git a/bootstrap/cff2 b/bootstrap/cff2 Binary files differindex 2de32e6..62a1bef 100755 --- a/bootstrap/cff2 +++ b/bootstrap/cff2 diff --git a/src/cffc.hff b/src/cffc.hff index d6de469..3e6a66f 100644 --- a/src/cffc.hff +++ b/src/cffc.hff @@ -467,10 +467,9 @@ fn mkarrtype(len i64, konst bool, child *const Type) *const Type { }); } fn mkptrtype(child *const Type) *const Type { - let tmp typeof((Type{}).u) = :Ptr(child); let ty = Type { g_targ.ptrsize, - .u: tmp + .u: :Ptr(child) }; return interntype(&ty); } diff --git a/src/parse.cff b/src/parse.cff index 7249390..45803bf 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -2787,11 +2787,6 @@ fn parsefn(P *Parser, loc Loc, toplevel bool, externp bool, name *const u8) *Dec static id int = 0; Fn.id = ++id; // TODO tlalloc necessary for templates. but it leaks some memory - let d Decl #?; - extern fn memset(*void, int, usize) *void; - memset(&d, 0, sizeof(d)); - d = decl; - let decl = putdecl_alloc(P, P.tlalloc, loc, decl); let Fn = &decl.u.Fn; decl.toplevel = toplevel; |