summaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-07 07:02:02 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-07 07:02:02 +0000
commit00ba6bd5de83c3562c4025148519fd7b8bf7c27a (patch)
tree9fb76bbd4262b032899b2cd77f6653508a644d54 /gcc/cp/rtti.c
parent26e29fcf401b867e9b32f8b74c641b6bb15e5e4d (diff)
downloadlinaro-gcc-00ba6bd5de83c3562c4025148519fd7b8bf7c27a.tar.gz
linaro-gcc-00ba6bd5de83c3562c4025148519fd7b8bf7c27a.tar.bz2
linaro-gcc-00ba6bd5de83c3562c4025148519fd7b8bf7c27a.zip
* call.c (merge_conversion_sequences): New function.
(build_conv): Set ICS_USER_FLAG for USER_CONVs. (convert_class_to_reference): Correct handling of second standard conversion sequence in a user-defined conversion sequence. (build_user_type_conversion_1): Use merge_conversion_sequences. * cp-tree.def: Add comments for CONV nodes. * g++.dg/init/ref3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63930 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r--gcc/cp/rtti.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 9ebae8b5448..eab85f70050 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. */