Convert lvalue reference type check to general reference type check
[deliverable/binutils-gdb.git] / gdb / language.c
index 31c5c591ab754b3d51d40895fd8a61eac8b0e91e..119c07ecb67599876a0d0463833c6bb114b20473 100644 (file)
@@ -409,8 +409,7 @@ language_info (int quietly)
 int
 pointer_type (struct type *type)
 {
-  return TYPE_CODE (type) == TYPE_CODE_PTR ||
-    TYPE_CODE (type) == TYPE_CODE_REF;
+  return TYPE_CODE (type) == TYPE_CODE_PTR || TYPE_IS_REFERENCE (type);
 }
 
 \f
This page took 0.038679 seconds and 4 git commands to generate.