* rtti.c (build_dynamic_cast_1): Fix cut-and-paste error.

From-SVN: r23470
This commit is contained in:
Jason Merrill 1998-10-31 02:50:29 +00:00 committed by Jason Merrill
parent cba30eb8f8
commit ecfafc1c15
2 changed files with 5 additions and 1 deletions

View 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

View 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;