* rtti.c (build_dynamic_cast_1): Fix cut-and-paste error.
From-SVN: r23470
This commit is contained in:
parent
cba30eb8f8
commit
ecfafc1c15
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user