Use scoped_restore in more places
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index 06eef5f22932a2ff39b60932e743993bcd5e9a84..62df73727f588c348f6cfd8037a7d7249ce38a9d 100644 (file)
@@ -1629,9 +1629,9 @@ d_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.024508 seconds and 4 git commands to generate.