summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-07-08 20:07:33 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-07-11 14:40:44 +0200
commit1a643e44900c511a733d977d9d31de036ea2b4f9 (patch)
tree0cf620d31407007a8b76eb8e41c9513bbce009a3 /ir/ana
parentcc80f54ffafd48a98732d0196265bd08ef790703 (diff)
Set the additional properties right when construction a method type.
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/irmemory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/ana/irmemory.c b/ir/ana/irmemory.c
index bf9f4b4..c73764c 100644
--- a/ir/ana/irmemory.c
+++ b/ir/ana/irmemory.c
@@ -898,8 +898,8 @@ static ir_type *clone_type_and_cache(ir_type *const tp, bool const is_variadic)
{
ir_type *res = pmap_get(ir_type, mtp_map, tp);
if (res == NULL) {
- res = clone_type_method(tp, is_variadic);
- add_method_additional_properties(res, mtp_property_private);
+ mtp_additional_properties const props = get_method_additional_properties(tp);
+ res = clone_type_method(tp, is_variadic, props | mtp_property_private);
pmap_insert(mtp_map, tp, res);
}