diff options
Diffstat (limited to 'gdb/compile/compile.c')
-rw-r--r-- | gdb/compile/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 6d51006..f4d2091 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -141,7 +141,7 @@ compile_instance::compile_instance (struct gcc_base_context *gcc_fe, /* See compile-internal.h. */ bool -compile_instance::get_cached_type (struct type *type, gcc_type &ret) const +compile_instance::get_cached_type (struct type *type, gcc_type *ret) const { struct type_map_instance inst, *found; @@ -149,7 +149,7 @@ compile_instance::get_cached_type (struct type *type, gcc_type &ret) const found = (struct type_map_instance *) htab_find (m_type_map.get (), &inst); if (found != NULL) { - ret = found->gcc_type_handle; + *ret = found->gcc_type_handle; return true; } |