Use new_reference for struct value
[deliverable/binutils-gdb.git] / gdb / dwarf2loc.c
index 243e047b9a7ca4e8644c0710afd6e3ca0e12463a..78d46688bcf38101d746e4fc32fb1269782dea90 100644 (file)
@@ -2482,7 +2482,7 @@ dwarf2_evaluate_loc_desc_full (struct type *type, struct frame_info *frame,
            /* Preserve VALUE because we are going to free values back
               to the mark, but we still need the value contents
               below.  */
-           value_ref_ptr value_holder (value_incref (value));
+           value_ref_ptr value_holder = value_ref_ptr::new_reference (value);
            free_values.free_to_mark ();
 
            retval = allocate_value (subobj_type);
This page took 0.023268 seconds and 4 git commands to generate.