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

fix extended fehler171

[r26924]
parent 705e29fe
...@@ -699,7 +699,6 @@ static int map_Div(ir_node *call, void *ctx) { ...@@ -699,7 +699,6 @@ static int map_Div(ir_node *call, void *ctx) {
ptr = get_Call_ptr(call); ptr = get_Call_ptr(call);
sym.entity_p = ent; sym.entity_p = ent;
ptr = new_r_SymConst(irg, get_irn_mode(ptr), sym, symconst_addr_ent); ptr = new_r_SymConst(irg, get_irn_mode(ptr), sym, symconst_addr_ent);
set_SymConst_symbol(ptr, sym);
set_Call_ptr(call, ptr); set_Call_ptr(call, ptr);
return 1; return 1;
...@@ -714,6 +713,7 @@ static int map_Mod(ir_node *call, void *ctx) { ...@@ -714,6 +713,7 @@ static int map_Mod(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)) {
...@@ -735,9 +735,12 @@ static int map_Mod(ir_node *call, void *ctx) { ...@@ -735,9 +735,12 @@ static int map_Mod(ir_node *call, void *ctx) {
set_entity_ld_ident(ent, ID("__umoddi3")); set_entity_ld_ident(ent, ID("__umoddi3"));
} }
} }
sym.entity_p = ent;
ptr = get_Call_ptr(call); ptr = get_Call_ptr(call);
set_SymConst_symbol(ptr, sym); sym.entity_p = ent;
ptr = new_r_SymConst(irg, get_irn_mode(ptr), sym, symconst_addr_ent);
set_Call_ptr(call, ptr);
return 1; return 1;
} }
......
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