gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git] / gdb / rust-exp.y
index 6e3e49259d09f8390d3a996c5da6bb5af49d4b2a..47aa799754d7661b0c5e5b52e27fbc01ea9d8fa7 100644 (file)
@@ -2414,7 +2414,7 @@ rust_parser::convert_ast_to_expression (const struct rust_op *operation,
 
            if (!want_type
                && type->code () == TYPE_CODE_STRUCT
-               && TYPE_NFIELDS (type) == 0)
+               && type->num_fields () == 0)
              {
                /* A unit-like struct.  */
                write_exp_elt_opcode (pstate, OP_AGGREGATE);
This page took 0.027533 seconds and 4 git commands to generate.