diff options
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 9ebae8b..eab85f7 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -378,13 +378,8 @@ get_tinfo_decl (tree type) static tree get_tinfo_ptr (tree type) { - tree exp = get_tinfo_decl (type); - - /* Convert to type_info type. */ - exp = build_unary_op (ADDR_EXPR, exp, 0); - exp = ocp_convert (type_info_ptr_type, exp, CONV_REINTERPRET, 0); - - return exp; + return build_nop (type_info_ptr_type, + build_address (get_tinfo_decl (type))); } /* Return the type_info object for TYPE. */ |