Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix broken type lookup code
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 10 Feb 2014 10:49:07 +0000 (11:49 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 10 Feb 2014 10:49:07 +0000 (11:49 +0100)
src/mc/mc_compare.c

index 40dd903..1405e25 100644 (file)
@@ -151,13 +151,8 @@ static int compare_areas_with_type(void *area1, void *area2, mc_object_info_t in
     case DW_TAG_structure_type:
     case DW_TAG_union_type:
       if(subtype->byte_size == 0){ /*declaration of the type, need the complete description */
-        dw_type_t full_type = xbt_dict_get_or_null(other_info->types_by_name, subtype->name);
-        if(full_type) {
-          type = full_type;
-        } else {
           subtype = xbt_dict_get_or_null(other_info->types_by_name, subtype->name);
           switch_types = 1;
-        }
       }
       elm_size = subtype->byte_size;
       break;