From 71d987bd2eece5a30f4c872f91f9b08a06efc873 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 15 Sep 2018 10:46:46 +0100 Subject: Fix runtime proc names; Change calling convention of `context` parameter --- src/ir.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ir.cpp') 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; -- cgit v1.2.3