diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-10-18 20:11:40 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-10-18 20:12:04 (GMT) |
commit | f340a5d363c55d77aca047b6dd85dfaaae02bb6d (patch) | |
tree | 65dbf5731b86cb3220fae4bf2669820bf0fa6e06 /plugins/itanium | |
parent | e0949633787945ca7ca8b2498f2bbcbf1255ff4b (diff) |
Updated the code for the prototypes support.
Diffstat (limited to 'plugins/itanium')
-rw-r--r-- | plugins/itanium/component.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c index d891c51..3baad57 100644 --- a/plugins/itanium/component.c +++ b/plugins/itanium/component.c @@ -1732,10 +1732,17 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin else { if (iter == comp->function.args) + { g_proto_type_set_return_type(G_PROTO_TYPE(result), arg); + g_object_unref(G_OBJECT(arg)); + } else + { g_proto_type_add_arg(G_PROTO_TYPE(result), arg); + g_object_unref(G_OBJECT(arg)); + } + } } |