diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-20 13:02:30 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-20 13:02:30 +0100 |
| commit | 099995e7dd5f420f96f8c8be19013d36e54b13d2 (patch) | |
| tree | 54776d581ee14d9ebc04f6739cfba3a29dc23459 /src/ir.cpp | |
| parent | 72f4186b216175b96c6692aa668644f78d8ccb13 (diff) | |
Add basics for context-based Logger
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index e2dabcbe9..5884b2d30 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -1767,6 +1767,7 @@ irValue *ir_find_or_generate_context_ptr(irProcedure *proc) { // 1 will be handled later ir_emit_store(proc, ir_emit_struct_ep(proc, c, 2), ir_emit_package_call(proc, "os", "current_thread_id", args)); ir_emit_store(proc, ir_emit_struct_ep(proc, c, 3), ir_get_package_value(proc->module, str_lit("runtime"), str_lit("default_assertion_failure_proc"))); + ir_emit_store(proc, ir_emit_struct_ep(proc, c, 4), ir_emit_package_call(proc, "log", "nil_logger", args)); array_init(&args, heap_allocator(), 1); args[0] = ir_get_package_value(proc->module, str_lit("runtime"), str_lit("global_scratch_allocator_data")); |