Convert lvalue reference type check to general reference type check
[deliverable/binutils-gdb.git] / gdb / symtab.c
index c0fd0fd4d5b2143be71a443e94577acd808c7fce..cc2f4001e0db43309edbde25dbb138f3fe2a7ee5 100644 (file)
@@ -1989,8 +1989,7 @@ lookup_symbol_aux (const char *name, const struct block *block,
          /* I'm not really sure that type of this can ever
             be typedefed; just be safe.  */
          t = check_typedef (t);
-         if (TYPE_CODE (t) == TYPE_CODE_PTR
-             || TYPE_CODE (t) == TYPE_CODE_REF)
+         if (TYPE_CODE (t) == TYPE_CODE_PTR || TYPE_IS_REFERENCE (t))
            t = TYPE_TARGET_TYPE (t);
 
          if (TYPE_CODE (t) != TYPE_CODE_STRUCT
This page took 0.02501 seconds and 4 git commands to generate.