aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-04-12 16:13:43 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-04-12 16:13:43 +0000
commit002fe164bc10fc2b5b96c9c8fe6ebc5c77d29812 (patch)
tree7d64a66e50921d26f0df70842c002ca69aeda4b3 /gcc/cp
parentdbd9f7c93235d87f9e10993eca014ca450b81852 (diff)
downloadgcc-002fe164bc10fc2b5b96c9c8fe6ebc5c77d29812.zip
gcc-002fe164bc10fc2b5b96c9c8fe6ebc5c77d29812.tar.gz
gcc-002fe164bc10fc2b5b96c9c8fe6ebc5c77d29812.tar.bz2
Fix typo
From-SVN: r33114
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/init.c31
1 files changed, 7 insertions, 24 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 0c398b3..fc2bcfb 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -2987,32 +2987,15 @@ build_dtor_call (exp, in_charge, flags)
else if (tree_int_cst_equal (in_charge, integer_two_node))
name = complete_dtor_identifier;
if (name)
- {
- if (!binfo)
- return build_method_call (exp, name, NULL_TREE, NULL_TREE, flags);
- else
- return build_scoped_method_call (exp, binfo, name, NULL_TREE);
- }
+ return build_method_call (exp, name, NULL_TREE, NULL_TREE, flags);
/* If that didn't work, build the various alternatives. */
- if (!binfo)
- {
- call1 = build_method_call (exp, complete_dtor_identifier,
- NULL_TREE, NULL_TREE, flags);
- call2 = build_method_call (exp, deleting_dtor_identifier,
- NULL_TREE, NULL_TREE, flags);
- call3 = build_method_call (exp, base_dtor_identifier,
- NULL_TREE, NULL_TREE, flags);
- }
- else
- {
- call1 = build_scoped_method_call (exp, binfo,
- complete_dtor_identifier, NULL_TREE);
- call2 = build_scoped_method_call (exp, binfo,
- deleting_dtor_identifier, NULL_TREE);
- call3 = build_scoped_method_call (exp, binfo,
- base_dtor_identifier, NULL_TREE);
- }
+ call1 = build_method_call (exp, complete_dtor_identifier,
+ NULL_TREE, NULL_TREE, flags);
+ call2 = build_method_call (exp, deleting_dtor_identifier,
+ NULL_TREE, NULL_TREE, flags);
+ call3 = build_method_call (exp, base_dtor_identifier,
+ NULL_TREE, NULL_TREE, flags);
/* Build the conditionals. */
result = build (COND_EXPR, void_type_node,