aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-01-04 01:56:21 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-01-04 01:56:21 -0500
commit664b41af65d3c9bbc8e09ffcaa91d404fe87d7a0 (patch)
treef7edd70f479394f6abbaff2a6736f4179ce940de /src/ir.cpp
parentdbb1018ca678652423e237bb5465f9b20f88c986 (diff)
downloadzig-664b41af65d3c9bbc8e09ffcaa91d404fe87d7a0.tar.gz
zig-664b41af65d3c9bbc8e09ffcaa91d404fe87d7a0.zip
fix debug information for function pointers in structs
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 5a5dc5c140..86cd3f5d89 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -4925,7 +4925,9 @@ static IrInstruction *ir_gen_container_decl(IrBuilder *irb, Scope *parent_scope,
name = buf_alloc();
buf_append_buf(name, &fn_entry->symbol_name);
buf_appendf(name, "(");
- // TODO render args
+ // TODO render args. note that fn_type_id is likely not complete
+ // at this time.
+ // probably have to render them from the fn scope
buf_appendf(name, ")");
} else {
name = buf_sprintf("(anonymous %s at %s:%zu:%zu)", container_string(kind),