gdb: make remove_dyn_prop a method of struct type
[deliverable/binutils-gdb.git] / gdb / value.c
index 7ea39af55517025e3b0a56221e51acaef6c52770..aafbf0fc06b3f8b34d40d07ec5f62937953bec78 100644 (file)
@@ -2291,7 +2291,7 @@ set_internalvar (struct internalvar *var, struct value *val)
          when accessing the value.
          If we keep it, we would still refer to the origin value.
          Remove the location property in case it exist.  */
-      remove_dyn_prop (DYN_PROP_DATA_LOCATION, value_type (new_data.value));
+      value_type (new_data.value)->remove_dyn_prop (DYN_PROP_DATA_LOCATION);
 
       break;
     }
This page took 0.026051 seconds and 4 git commands to generate.