doc/Makefile: readded test_suite_spec and cdbfileformat
[fw/sdcc] / src / hc08 / gen.c
index 12a0982cf362782cbc708af03a466d44c7f08f21..9f60de19fee3f42678e15669bdb3b8adaf1fbea3 100644 (file)
@@ -6491,7 +6491,7 @@ genPointerGet (iCode * ic, iCode *pi)
     }
 
   /* special case when cast remat */
-  if (p_type == GPOINTER && OP_SYMBOL(left)->remat &&
+  if (p_type == GPOINTER && IS_SYMOP(left) && OP_SYMBOL(left)->remat &&
       IS_CAST_ICODE(OP_SYMBOL(left)->rematiCode)) {
          left = IC_RIGHT(OP_SYMBOL(left)->rematiCode);
          type = operandType (left);