aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2001-01-29 18:57:24 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2001-01-29 18:57:24 +0000
commit718b8ea51f0736646f9cf8a9d5eb4305a12e835e (patch)
treeb48d73c0ebfe52de5ca1bb8398e3b4a0964d226a /gcc/cp/decl2.c
parentadc881318b71864ad27821825c7cb9dce3c30aa2 (diff)
downloadgcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.zip
gcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.tar.gz
gcc-718b8ea51f0736646f9cf8a9d5eb4305a12e835e.tar.bz2
tree.c, tree.h (build_parse_node): Remove; was identical to build_nt.
* tree.c, tree.h (build_parse_node): Remove; was identical to build_nt. * c-lang.c (start_cdtor), objc/objc-act.c (build_module_descriptor): Use build_nt instead of build_parse_node. cp: * decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator, make_reference_declarator, make_call_declarator), method.c (implicitly_declare_fn), parse.y (namespace_using_decl, notype_unqualified_id, expr_or_declarator, new_type_id, after_type_declarator, direct_after_type_declarator, notype_declarator, complex_notype_declarator, complex_direct_notype_declarator, qualified_id, notype_qualified_id, overqualified_id, direct_new_declarator, absdcl, direct_abstract_declarator, conversion_declarator), pt.c (tsubst), semantics.c (begin_constructor_declarator): Use build_nt instead of build_parse_node. From-SVN: r39332
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 2cb9e44..6088e10 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -4032,8 +4032,8 @@ build_expr_from_tree (t)
case ARRAY_REF:
if (TREE_OPERAND (t, 0) == NULL_TREE)
/* new-type-id */
- return build_parse_node (ARRAY_REF, NULL_TREE,
- build_expr_from_tree (TREE_OPERAND (t, 1)));
+ return build_nt (ARRAY_REF, NULL_TREE,
+ build_expr_from_tree (TREE_OPERAND (t, 1)));
return grok_array_decl (build_expr_from_tree (TREE_OPERAND (t, 0)),
build_expr_from_tree (TREE_OPERAND (t, 1)));