From b6bbfaeb88809fe3a14cd930ed0f2e45ddc87c8a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 31 May 2008 10:47:43 +0000 Subject: [PATCH] use ir_type from call instead of the type from the symconst entity in mapper [r19887] --- ir/lower/lower_intrinsics.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ir/lower/lower_intrinsics.c b/ir/lower/lower_intrinsics.c index bf97301a8..6c95c3107 100644 --- a/ir/lower/lower_intrinsics.c +++ b/ir/lower/lower_intrinsics.c @@ -691,9 +691,7 @@ int i_mapper_strcmp(ir_node *call, void *ctx) { ir_node *irn = NULL; ir_node *exc = NULL; ir_node *reg = NULL; - ir_node *adr = get_Call_ptr(call); - ir_entity *ent = get_SymConst_entity(adr); - ir_type *call_tp = get_entity_type(ent); + ir_type *call_tp = get_Call_type(call); ir_type *res_tp = get_method_res_type(call_tp, 0); ir_entity *ent_l, *ent_r; ir_type *char_tp; -- 2.20.1