From ecfafc1c1598a032d1a9f0778d515eff99d05f4f Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 31 Oct 1998 02:50:29 +0000 Subject: [PATCH] * rtti.c (build_dynamic_cast_1): Fix cut-and-paste error. From-SVN: r23470 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/rtti.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e9be4735564..085cb3375a3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-10-31 Jason Merrill + + * rtti.c (build_dynamic_cast_1): Fix cut-and-paste error. + 1998-10-30 Mark Mitchell * decl2.c (delete_sanity): Pass integer_zero_node, not diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index b9c94980218..5b451bf55ed 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -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; -- 2.30.2