diff options
| author | 2022-08-26 09:03:00 +0200 | |
|---|---|---|
| committer | 2022-08-26 09:03:00 +0200 | |
| commit | 03f945e9feb08e4525b5b73a4aec81ef11b04f7f (patch) | |
| tree | 41b8e556f25281c5a3b46c9e9f6228aed386da7b /src/parse.cff | |
| parent | d08e43f70d7482543c9bb2ba548bcd31e7eba978 (diff) | |
vararg promote array->ptr
Diffstat (limited to 'src/parse.cff')
| -rw-r--r-- | src/parse.cff | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse.cff b/src/parse.cff index b0b96cb..f03e13a 100644 --- a/src/parse.cff +++ b/src/parse.cff @@ -329,7 +329,7 @@ fn lex(P *Parser) Tok { if tok.t == '#FIL' { return { :str, tok.loc, .u: { .str: spanz(fileid2path(ep.loc.fileid)) }}; } else { - return { :int, tok.loc, .u: { .int: ep.loc.line }}; + return { :int, tok.loc, .ty: ty_int, .u: { .int: ep.loc.line }}; } } return tok; @@ -453,7 +453,7 @@ fn lex(P *Parser) Tok { if delim == '"' { tok.t = :str; str->push('\0'); - tok.u.str = str->move(P.alloc); + tok.u.str = str->move(P.tlalloc); tok.u.str = tok.u.str[0::tok.u.str.#len - 1]; } else { tok.t = :chr; @@ -3035,6 +3035,7 @@ extern fn parse(P *Parser) [#]Decl { } } + llvm_fini(); envfree(P.curenv); aralloc->destroy(); return decls.dat[0::decls.len]; |