diff options
| author | gingerBill <bill@gingerbill.org> | 2019-01-04 10:19:39 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-01-04 10:19:39 +0000 |
| commit | bb93a8b131e58b9f897be08fb88f662ade7e34fe (patch) | |
| tree | a68485e436545b1fe4901a57ba063c8141eccbd7 /src/ir.cpp | |
| parent | 5bfe5ad82e7236bd805f888934f5bdc3e768050b (diff) | |
Fix TODO ParameterValue_Location
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index a8b2e77c3..604e61d4b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -6441,8 +6441,7 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) { args[i] = ir_value_nil(e->type); break; case ParameterValue_Location: - // args[i] = - GB_PANIC("TODO ParameterValue_Location"); + args[i] = ir_emit_source_code_location(proc, proc->entity->token.string, ast_token(expr).pos); break; case ParameterValue_Value: args[i] = ir_build_expr(proc, e->Variable.param_value.ast_value); |