Commit 705e29fe authored by Matthias Braun's avatar Matthias Braun
Browse files

Fix fehler171

[r26922]
parent 67aaf700
...@@ -673,6 +673,7 @@ static int map_Div(ir_node *call, void *ctx) { ...@@ -673,6 +673,7 @@ static int map_Div(ir_node *call, void *ctx) {
ir_mode *h_mode = get_type_mode(get_method_res_type(method, 1)); ir_mode *h_mode = get_type_mode(get_method_res_type(method, 1));
ir_node *ptr; ir_node *ptr;
ir_entity *ent; ir_entity *ent;
ir_graph *irg = get_irn_irg(call);
symconst_symbol sym; symconst_symbol sym;
if (mode_is_signed(h_mode)) { if (mode_is_signed(h_mode)) {
...@@ -694,9 +695,13 @@ static int map_Div(ir_node *call, void *ctx) { ...@@ -694,9 +695,13 @@ static int map_Div(ir_node *call, void *ctx) {
set_entity_ld_ident(ent, ID("__udivdi3")); set_entity_ld_ident(ent, ID("__udivdi3"));
} }
} }
sym.entity_p = ent;
ptr = get_Call_ptr(call); ptr = get_Call_ptr(call);
sym.entity_p = ent;
ptr = new_r_SymConst(irg, get_irn_mode(ptr), sym, symconst_addr_ent);
set_SymConst_symbol(ptr, sym); set_SymConst_symbol(ptr, sym);
set_Call_ptr(call, ptr);
return 1; return 1;
} }
......
Supports Markdown
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