diff options
Diffstat (limited to 'src/lower.c')
| -rw-r--r-- | src/lower.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lower.c b/src/lower.c index 2209b8e..b9f9665 100644 --- a/src/lower.c +++ b/src/lower.c @@ -269,7 +269,10 @@ static int lower_simple_param(struct lower_state *s, struct ast *p) UNUSED(s); char *t = is_small_type(p->t) ? "i9" : "i27"; printf("%s ", t); - output_ast_id(p); + + if (var_id(p)) output_ast_id(p); + else printf("tmp%zd", s->uniq++); + printf(", "); return 0; } |
