* rtti.c (build_dynamic_cast_1): Fix cut-and-paste error.
authorJason Merrill <jason@yorick.cygnus.com>
Sat, 31 Oct 1998 02:50:29 +0000 (02:50 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 31 Oct 1998 02:50:29 +0000 (21:50 -0500)
From-SVN: r23470

gcc/cp/ChangeLog
gcc/cp/rtti.c

index e9be4735564936c3cf4034841c8e4cdefbfc976d..085cb3375a32c1d09ef994e71f581e711bc9e0ed 100644 (file)
@@ -1,3 +1,7 @@
+1998-10-31  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * rtti.c (build_dynamic_cast_1): Fix cut-and-paste error.
+
 1998-10-30  Mark Mitchell  <mark@markmitchell.com>
 
        * decl2.c (delete_sanity): Pass integer_zero_node, not
index b9c949802181da400b21414dbccf77d632eebf4d..5b451bf55ed46a539f96b9c42ec07b987fb2575a 100644 (file)
@@ -566,7 +566,7 @@ build_dynamic_cast_1 (type, expr)
                  && TREE_CODE (TREE_TYPE (op)) == RECORD_TYPE)
                {
                  cp_warning ("dynamic_cast of `%#D' to `%#T' can never succeed",
-                             expr, type);
+                             op, type);
                  retval = build_int_2 (0, 0); 
                  TREE_TYPE (retval) = type; 
                  return retval;