Use scoped_restore in more places
[deliverable/binutils-gdb.git] / gdb / go-exp.y
index 1906e68c7a91d5d08b3657ef7e44aee2a7cd0664..057e2277e808722f82c1351b8ddc2fb1c33359da 100644 (file)
@@ -1569,9 +1569,9 @@ go_parse (struct parser_state *par_state)
 
   back_to = make_cleanup (null_cleanup, NULL);
 
-  make_cleanup_restore_integer (&yydebug);
+  scoped_restore restore_yydebug = make_scoped_restore (&yydebug,
+                                                       parser_debug);
   make_cleanup_clear_parser_state (&pstate);
-  yydebug = parser_debug;
 
   /* Initialize some state used by the lexer.  */
   last_was_structop = 0;
This page took 0.025829 seconds and 4 git commands to generate.