diff options
| author | Mark Mitchell <mark@codesourcery.com> | 2003-07-03 18:13:44 +0000 |
|---|---|---|
| committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-07-03 18:13:44 +0000 |
| commit | 8d245821a2f3c28b71bf0958c90cf7fed6c9871d (patch) | |
| tree | 7a1b74d528559e87eba7c56bcafd46a0a8dea100 /gcc/cp/call.c | |
| parent | ee41cff421132bb2891a4ad51fae0f83ffcfe087 (diff) | |
| download | gcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.zip gcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.tar.gz gcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.tar.bz2 | |
call.c (build_scoped_method_call): Use convert_to_void.
* call.c (build_scoped_method_call): Use convert_to_void.
(build_method_call): Likewise.
* class.c (check_field_decls): Remove dead code.
* cvt.c (convert_from_reference): Remove OFFSET_TYPE handling.
* decl2.c (grok_array_decl): Remove dead code.
(arg_assoc_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
as pointer-to-member representation.
* init.c (build_offset_ref): Tidy.
(build_vec_delete_1): Use convert_to_void.
* mangle.c (write_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE
as pointer-to-member representation.
From-SVN: r68895
Diffstat (limited to 'gcc/cp/call.c')
| -rw-r--r-- | gcc/cp/call.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 6e5bc8f..bc1179b 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -263,7 +263,7 @@ build_scoped_method_call (tree exp, tree basetype, tree name, tree parms) error ("type of `%E' does not match destructor type `%T' (type was `%T')", exp, basetype, type); - return cp_convert (void_type_node, exp); + return convert_to_void (exp, /*implicit=*/NULL); } } @@ -290,7 +290,7 @@ build_scoped_method_call (tree exp, tree basetype, tree name, tree parms) if (TREE_CODE (name) == BIT_NOT_EXPR) { if (! TYPE_HAS_DESTRUCTOR (TREE_TYPE (decl))) - return cp_convert (void_type_node, exp); + return convert_to_void (exp, /*implicit=*/NULL); return build_delete (TREE_TYPE (decl), decl, sfk_complete_destructor, @@ -496,7 +496,7 @@ build_method_call (tree instance, tree name, tree parms, TREE_OPERAND (name, 0), object_type); if (! TYPE_HAS_DESTRUCTOR (complete_type (object_type))) - return cp_convert (void_type_node, instance); + return convert_to_void (instance, /*implicit=*/NULL); instance = default_conversion (instance); instance_ptr = build_unary_op (ADDR_EXPR, instance, 0); return build_delete (build_pointer_type (object_type), |
