fix debug information for function pointers in structs

This commit is contained in:
Andrew Kelley
2017-01-04 01:56:21 -05:00
parent dbb1018ca6
commit 664b41af65
2 changed files with 16 additions and 2 deletions

View File

@@ -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),