aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cvt.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>1999-04-01 12:23:07 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>1999-04-01 12:23:07 +0000
commitae9e7e16cd1b1a82cfc2367d98a54ee0ec1197db (patch)
tree05a9d70a8720ed3b125d18d71f9eed5bbe81f02d /gcc/cp/cvt.c
parent6ab06cbb5b0861f9c65f009eba3d6cddbce7910b (diff)
downloadgcc-ae9e7e16cd1b1a82cfc2367d98a54ee0ec1197db.zip
gcc-ae9e7e16cd1b1a82cfc2367d98a54ee0ec1197db.tar.gz
gcc-ae9e7e16cd1b1a82cfc2367d98a54ee0ec1197db.tar.bz2
cvt.c (convert_pointer_to_real): Use same_type_p.
* cvt.c (convert_pointer_to_real): Use same_type_p. * typeck.c (comp_target_types): Use same_type_p. From-SVN: r26105
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r--gcc/cp/cvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c
index d03cff5..cef8bc8 100644
--- a/gcc/cp/cvt.c
+++ b/gcc/cp/cvt.c
@@ -579,7 +579,7 @@ convert_pointer_to_real (binfo, expr)
ptr_type = cp_build_qualified_type (type,
CP_TYPE_QUALS (TREE_TYPE (intype)));
ptr_type = build_pointer_type (ptr_type);
- if (ptr_type == TYPE_MAIN_VARIANT (intype))
+ if (same_type_p (ptr_type, TYPE_MAIN_VARIANT (intype)))
return expr;
my_friendly_assert (!integer_zerop (expr), 191);