aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 58e3a09..d2dd590 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -61,8 +61,6 @@ find_size_for_pointer_math (struct type *ptr_type)
name = TYPE_NAME (ptr_target);
if (name == NULL)
- name = TYPE_TAG_NAME (ptr_target);
- if (name == NULL)
error (_("Cannot perform pointer math on incomplete types, "
"try casting to a known type, or void *."));
else