Fix backend/lower_call2.c
authorAndreas Zwinkau <zwinkau@kit.edu>
Wed, 20 Apr 2011 08:21:09 +0000 (10:21 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Wed, 20 Apr 2011 09:06:35 +0000 (11:06 +0200)
Similiar to 9d207c0 the call lowering should always use the current
entity type, instead of the associate type, which may or may not be
a lowered type.

ir/lower/lower_dw.c

index ed02e6e..0169dd0 100644 (file)
@@ -1687,13 +1687,7 @@ static void lower_Call(ir_node *node, ir_mode *mode, lower_env_t *env)
        long     *res_numbers = NULL;
        (void) mode;
 
-       if (is_lowered_type(tp)) {
-               call_tp = get_associated_type(tp);
-       } else {
-               call_tp = tp;
-       }
-
-       assert(! is_lowered_type(call_tp));
+       call_tp = tp;
 
        n_params = get_method_n_params(call_tp);
        for (p = 0; p < n_params; ++p) {