]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/eval.c
gdb: remove TYPE_FIELD_NAME and FIELD_NAME macros
[thirdparty/binutils-gdb.git] / gdb / eval.c
index bfab6d8094a14d4a2d0eedc9e86f7f902f3c8e13..8fe93183021e24fa2cb6207f393e895954b8a52f 100644 (file)
@@ -2298,7 +2298,7 @@ array_operation::evaluate_struct_tuple (struct value *struct_val,
        error (_("too many initializers"));
       field_type = struct_type->field (fieldno).type ();
       if (field_type->code () == TYPE_CODE_UNION
-         && TYPE_FIELD_NAME (struct_type, fieldno)[0] == '0')
+         && struct_type->field (fieldno).name ()[0] == '0')
        error (_("don't know which variant you want to set"));
 
       /* Here, struct_type is the type of the inner struct,