aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-15 10:46:46 +0100
committergingerBill <bill@gingerbill.org>2018-09-15 10:46:46 +0100
commit71d987bd2eece5a30f4c872f91f9b08a06efc873 (patch)
treebab662631fd0f723847bbc024e13ec827ad16788 /src/ir.cpp
parent637899467c2329ad0f405ae5d4d6e76e1b091243 (diff)
Fix runtime proc names; Change calling convention of `context` parameter
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index dbde6242f..8aca9fbfa 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -2090,17 +2090,9 @@ void ir_addr_store(irProcedure *proc, irAddr const &addr, irValue *value) {
} else if (addr.kind == irAddr_Context) {
irValue *new_context = ir_emit_conv(proc, value, ir_addr_type(addr));
- irValue *prev = ir_find_or_generate_context_ptr(proc);
- GB_ASSERT(addr.addr == prev);
-
irValue *next = ir_add_local_generated(proc, t_context);
ir_emit_store(proc, next, new_context);
- Selection sel = lookup_field(t_context, str_lit("parent"), false);
- GB_ASSERT(sel.entity != nullptr);
- irValue *parent_ptr = ir_emit_deep_field_gep(proc, next, sel);
- ir_emit_store(proc, parent_ptr, prev);
-
ir_push_context_onto_stack(proc, next);
return;