Fix "enumeration values not handled in switch" error in testsuite
[deliverable/binutils-gdb.git] / gdb / buildsym.c
index b25d09b5c0c91ca5c53fc526ec452f5105a0b21f..33bf6523e905bb2a9f54ab3e7e007c9795fba18c 100644 (file)
@@ -272,8 +272,9 @@ buildsym_compunit::finish_block_internal
          if (nparams > 0)
            {
              ftype->set_num_fields (nparams);
-             TYPE_FIELDS (ftype) = (struct field *)
-               TYPE_ALLOC (ftype, nparams * sizeof (struct field));
+             ftype->set_fields
+               ((struct field *)
+                TYPE_ALLOC (ftype, nparams * sizeof (struct field)));
 
              iparams = 0;
              /* Here we want to directly access the dictionary, because
This page took 0.024153 seconds and 4 git commands to generate.