search.c (get_dynamic_cast_base_type): When building a new constant, set its type...
authorJ"orn Rennecke <amylaar@redhat.com>
Thu, 5 Apr 2001 15:57:35 +0000 (15:57 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 5 Apr 2001 15:57:35 +0000 (16:57 +0100)
* search.c (get_dynamic_cast_base_type): When building a new
constant, set its type to ssizetype.

From-SVN: r41117

gcc/cp/ChangeLog
gcc/cp/search.c

index fe4c125..1803a0d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Apr  5 16:54:29 2001  J"orn Rennecke <amylaar@redhat.com>
+
+       * search.c (get_dynamic_cast_base_type): When building a new
+       constant, set its type to ssizetype.
+
 2001-04-04  Jakub Jelinek  <jakub@redhat.com>
 
        * optimize.c (expand_call_inline): Only add newly inlined statements
index c52620f..1c0a50d 100644 (file)
@@ -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