summaryrefslogtreecommitdiff
path: root/plugins/itanium
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-18 21:24:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-18 21:24:25 (GMT)
commit39f8a5c2a48a209507dbc3fd407052999954a199 (patch)
tree1dc29f7ddab258242c397e4a29a41913b5b24f66 /plugins/itanium
parentf340a5d363c55d77aca047b6dd85dfaaae02bb6d (diff)
Updated the code for the types built from expressions.
Diffstat (limited to 'plugins/itanium')
-rw-r--r--plugins/itanium/component.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c
index 3baad57..25ea175 100644
--- a/plugins/itanium/component.c
+++ b/plugins/itanium/component.c
@@ -1407,6 +1407,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
GDataType *arg; /* Argument de prototype */
GDataType *members; /* Type de membres de tableau */
GDataType *param; /* Paramètre de gabarit */
+ char *value; /* Valeur quelconque exprimée */
/* Pour GCC !? */
result = NULL;
@@ -1855,7 +1856,9 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
break;
case ICT_OPERATED_EXPRESSION:
- result = g_expr_type_new(itd_translate_component(comp, NULL));
+ value = itd_translate_component(comp, NULL);
+ result = g_expr_type_new(value);
+ free(value);
break;
case ICT_STD_SUBST: