diff options
author | Michael Forney <mforney@mforney.org> | 2019-02-22 12:25:50 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-02-22 12:25:50 -0800 |
commit | 2cbd75bbab472b6861dc0ae806e41cf139518fe6 (patch) | |
tree | 15435cabe49771c07664df83824297cfa3d9f008 /qbe.c | |
parent | f2a079fa1a94b6a99e7ce432b6df17fdb4c9b554 (diff) |
Implement __builtin_alloca
Diffstat (limited to 'qbe.c')
-rw-r--r-- | qbe.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -830,6 +830,9 @@ funcexpr(struct function *f, struct expression *e) case BUILTINVAEND: /* no-op */ break; + case BUILTINALLOCA: + l = funcexpr(f, e->builtin.arg); + return funcinst(f, IALLOC16, &iptr, (struct value *[]){l}); default: fatal("internal error: unimplemented builtin"); } |