SHF_GNU_RETAIN 7a and 7b tests
[binutils-gdb.git] / gdb / stack.c
index 7618f72319ab8be845afde62d891d211fac386d2..943b3db08753a0fa4460fa83e87228589750f3b4 100644 (file)
@@ -2770,8 +2770,8 @@ return_command (const char *retval_exp, int from_tty)
        return_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (thisfun));
       if (return_type == NULL)
        {
-         if (retval_expr->elts[0].opcode != UNOP_CAST
-             && retval_expr->elts[0].opcode != UNOP_CAST_TYPE)
+         if (retval_expr->first_opcode () != UNOP_CAST
+             && retval_expr->first_opcode () != UNOP_CAST_TYPE)
            error (_("Return value type not available for selected "
                     "stack frame.\n"
                     "Please use an explicit cast of the value to return."));