From 0b4c1646f317d3fc3a39e70aa27600c7220f5127 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Thu, 5 Apr 2001 15:57:35 +0000 Subject: [PATCH] search.c (get_dynamic_cast_base_type): When building a new constant, set its type to ssizetype. * search.c (get_dynamic_cast_base_type): When building a new constant, set its type to ssizetype. From-SVN: r41117 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/search.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fe4c12523ec..1803a0d5e53 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 5 16:54:29 2001 J"orn Rennecke + + * search.c (get_dynamic_cast_base_type): When building a new + constant, set its type to ssizetype. + 2001-04-04 Jakub Jelinek * optimize.c (expand_call_inline): Only add newly inlined statements diff --git a/gcc/cp/search.c b/gcc/cp/search.c index c52620f0cf3..1c0a50d949b 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -561,7 +561,9 @@ get_dynamic_cast_base_type (subtype, target) if (!boff) return offset; - return build_int_2 (boff, -1); + offset = build_int_2 (boff, -1); + TREE_TYPE (offset) = ssizetype; + return offset; } /* Search for a member with name NAME in a multiple inheritance lattice -- 2.30.2