Convert lvalue reference type check to general reference type check
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index dab4f53b373662de170f8c52ae105673491ada3b..e4a35a7b40d8fe0542f63f0973d598e71d8b308f 100644 (file)
@@ -1691,7 +1691,7 @@ x_command (char *exp, int from_tty)
       if (from_tty)
        *exp = 0;
       val = evaluate_expression (expr.get ());
-      if (TYPE_CODE (value_type (val)) == TYPE_CODE_REF)
+      if (TYPE_IS_REFERENCE (value_type (val)))
        val = coerce_ref (val);
       /* In rvalue contexts, such as this, functions are coerced into
          pointers to functions.  This makes "x/i main" work.  */
This page took 0.031802 seconds and 4 git commands to generate.