summaryrefslogtreecommitdiffstats
path: root/gdb/valops.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 0a5ae14b6a..433099ea61 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1895,6 +1895,7 @@ find_overload_match (struct type **arg_types, int nargs,
/* Get the list of overloaded methods or functions. */
if (method)
{
+ gdb_assert (obj);
obj_type_name = TYPE_NAME (value_type (obj));
/* Hack: evaluate_subexp_standard often passes in a pointer
value rather than the object itself, so try again. */
OpenPOWER on IntegriCloud