summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-12 12:38:50 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-12 12:38:50 +0200
commitf79340dcf1889fa13d613e41295bc249d6b2c6ec (patch)
treeea7794fe588c37b57872ff015ff7429f079e04bc /src
parent180ee0c1d3c4c9995f77a6cf23fb26ef920a02f6 (diff)
Adapt to removal of atomic entity functions.
Diffstat (limited to 'src')
-rw-r--r--src/firm/ast2firm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firm/ast2firm.c b/src/firm/ast2firm.c
index ec32387..8d81759 100644
--- a/src/firm/ast2firm.c
+++ b/src/firm/ast2firm.c
@@ -3915,7 +3915,8 @@ static void create_variable_initializer(entity_t *entity)
&& get_entity_owner(irentity) != get_tls_type()) {
add_entity_linkage(irentity, IR_LINKAGE_CONSTANT);
}
- set_atomic_ent_value(irentity, node);
+ ir_initializer_t *const init = create_initializer_const(node);
+ set_entity_initializer(irentity, init);
}
} else {
have_initializer:
@@ -4867,7 +4868,8 @@ static void add_function_pointer(ir_type *segment, ir_entity *method,
ident *debug_name = id_unique(tag);
set_entity_ident(ptr, debug_name);
- set_atomic_ent_value(ptr, val);
+ ir_initializer_t *const init = create_initializer_const(val);
+ set_entity_initializer(ptr, init);
}
/**