* eval.c (evaluate_subexp_standard): Fix thinko in handling
[deliverable/binutils-gdb.git] / gdb / eval.c
index 4253820719c44fba3742ff5aa594fff5bc780cc7..42958459b8ca3c8ba73cef89d70278abe037d45d 100644 (file)
@@ -2751,10 +2751,9 @@ evaluate_subexp_standard (struct type *expect_type,
       if (noside == EVAL_SKIP)
        goto nosideret;
       if (noside == EVAL_AVOID_SIDE_EFFECTS)
-       return value_zero (exp->elts[pc + 1].type, lval_memory);
+       return value_zero (type, lval_memory);
       else
-       return value_at_lazy (exp->elts[pc + 1].type,
-                             value_as_address (arg1));
+       return value_at_lazy (type, value_as_address (arg1));
 
     case UNOP_MEMVAL_TLS:
       (*pos) += 3;
This page took 0.024329 seconds and 4 git commands to generate.