summaryrefslogtreecommitdiff
path: root/gcc/ch/inout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ch/inout.c')
-rw-r--r--gcc/ch/inout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ch/inout.c b/gcc/ch/inout.c
index 56164ac3857..ff2de0a3619 100644
--- a/gcc/ch/inout.c
+++ b/gcc/ch/inout.c
@@ -130,8 +130,7 @@ static tree add_enum_to_list (type, context)
if (wrk->context == context && wrk->type == type)
{
/* yes, found. look if the ptrdecl is valid in this scope */
- char *name = IDENTIFIER_POINTER (DECL_NAME (wrk->ptrdecl));
- tree var = get_identifier (name);
+ tree var = DECL_NAME (wrk->ptrdecl);
tree decl = lookup_name (var);
if (decl == NULL_TREE)