diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-30 17:49:30 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-30 17:49:30 +0000 |
| commit | ca311c4a59a34c0b516a415df37e7dd9d9fb65bf (patch) | |
| tree | 8dedc0eef2950c77120b31787f8ba433b0e551a7 /src/ssa/proc.cpp | |
| parent | 3ec67853e1359015f516aac346760b299d261015 (diff) | |
Begin work on the Interpreter
Diffstat (limited to 'src/ssa/proc.cpp')
| -rw-r--r-- | src/ssa/proc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ssa/proc.cpp b/src/ssa/proc.cpp index 262c44972..4d2b03bdf 100644 --- a/src/ssa/proc.cpp +++ b/src/ssa/proc.cpp @@ -11,7 +11,8 @@ void ssa_begin_procedure_body(ssaProcedure *proc) { auto *params = &proc->type->Proc.params->Tuple; for (isize i = 0; i < params->variable_count; i++) { Entity *e = params->variables[i]; - ssa_add_param(proc, e); + ssaValue *param = ssa_add_param(proc, e); + array_add(&proc->params, param); } } } |