create and use symbol_set_language.
[deliverable/binutils-gdb.git] / gdb / cp-namespace.c
index 49ada6464d784044f6a7b979271b9f60f189ed6e..16f58ca1a3cf84d49302226d674f508ba153b4fa 100644 (file)
@@ -938,7 +938,7 @@ check_one_possible_namespace_symbol (const char *name, int len,
 
       sym = obstack_alloc (&objfile->objfile_obstack, sizeof (struct symbol));
       memset (sym, 0, sizeof (struct symbol));
-      SYMBOL_LANGUAGE (sym) = language_cplus;
+      SYMBOL_SET_LANGUAGE (sym, language_cplus);
       /* Note that init_type copied the name to the objfile's
         obstack.  */
       SYMBOL_SET_NAMES (sym, TYPE_NAME (type), len, 0, objfile);
This page took 0.022934 seconds and 4 git commands to generate.