diff options
author | Steve Ellcey <sje@cup.hp.com> | 2002-10-01 22:47:09 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2002-10-01 22:47:09 +0000 |
commit | 2e88ae226707a6285909db660fe2a101ac7e0ecc (patch) | |
tree | 75975bb315bb24791a585e6fd03e8cc2b00ae7a8 /gcc/cp | |
parent | b6aa31c56a6255282d71d5dd2df2c05f66d8a374 (diff) | |
download | gcc-2e88ae226707a6285909db660fe2a101ac7e0ecc.zip gcc-2e88ae226707a6285909db660fe2a101ac7e0ecc.tar.gz gcc-2e88ae226707a6285909db660fe2a101ac7e0ecc.tar.bz2 |
class.c (build_vtbl_initializer): Change build_c_cast to build1.
* cp/class.c (build_vtbl_initializer): Change build_c_cast
to build1.
From-SVN: r57712
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 4 |
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; } |