aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6d4031c..1c9e5a6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-01 Steve Ellcey <sje@cup.hp.com>
+
+ * cp/class.c (build_vtbl_initializer): Change build_c_cast
+ to build1.
+
2002-10-01 Mark Mitchell <mark@codesourcery.com>
* decl.c (cp_finish_decl): Correct check for dynamic
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 5d46eaa..3f07491 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -7617,8 +7617,8 @@ build_vtbl_initializer (binfo, orig_binfo, t, rtti_binfo, non_fn_entries_p)
for (i = 1; i < TARGET_VTABLE_DATA_ENTRY_DISTANCE; ++i)
add = tree_cons (NULL_TREE,
- build_c_cast (vtable_entry_type,
- size_zero_node),
+ build1 (NOP_EXPR, vtable_entry_type,
+ null_pointer_node),
add);
*prev = add;
}