Remove make_cleanup_clear_parser_state
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index d392a5cb2ef510bec4f81b244187309718e198ff..9b773c65441b710bd3ad1bc72c5923206ed3e14b 100644 (file)
@@ -1624,6 +1624,7 @@ d_parse (struct parser_state *par_state)
   struct cleanup *back_to;
 
   /* Setting up the parser state.  */
+  scoped_restore pstate_restore = make_scoped_restore (&pstate);
   gdb_assert (par_state != NULL);
   pstate = par_state;
 
@@ -1633,7 +1634,6 @@ d_parse (struct parser_state *par_state)
 
   scoped_restore restore_yydebug = make_scoped_restore (&yydebug,
                                                        parser_debug);
-  make_cleanup_clear_parser_state (&pstate);
 
   /* Initialize some state used by the lexer.  */
   last_was_structop = 0;
This page took 0.023949 seconds and 4 git commands to generate.