Commit f84b4c9f authored by Matthias Braun's avatar Matthias Braun
Browse files

ia32: free between type in ia32_finish

parent 6cd6e689
......@@ -253,7 +253,7 @@ static int ia32_get_sp_bias(const ir_node *node)
static void ia32_build_between_type(void)
{
#define IDENT(s) new_id_from_chars(s, sizeof(s)-1)
if (! between_type) {
if (between_type == NULL) {
ir_type *old_bp_type = new_type_primitive(mode_Iu);
ir_type *ret_addr_type = new_type_primitive(mode_Iu);
......@@ -1768,6 +1768,10 @@ static void ia32_init(void)
static void ia32_finish(void)
{
if (between_type != NULL) {
free_type(between_type);
between_type = NULL;
}
ia32_free_opcodes();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment