cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from 2004-06-23 change.
authorMark Mitchell <mark@codesourcery.com>
Fri, 25 Jun 2004 19:44:49 +0000 (19:44 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 25 Jun 2004 19:44:49 +0000 (19:44 +0000)
* cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
2004-06-23 change.

From-SVN: r83675

gcc/cp/ChangeLog
gcc/cp/cp-mudflap.c

index aca2db2ab9debff94e972ca768836fcf764859ae..bfb995cb0af7b38c78f9c087fb1bdf7b8f61cda5 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-25  Mark Mitchell  <mark@codesourcery.com>
+
+       * cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
+       2004-06-23 change.
+
 2004-06-25  Paul Brook  <paul@codesourcery.com>
 
        * decl2.c (get_guard): Call targetm.cxx.guard_type.
index 23e875029d6de73b34b6052d2d2411834c21732f..a9703a76ec2d0bbb32e8f599f363a47dcf50a234 100644 (file)
@@ -74,10 +74,10 @@ mflang_flush_calls (tree enqueued_call_stmt_chain)
   type = build_function_type (void_type_node, void_list_node);
   fndecl = build_lang_decl (FUNCTION_DECL, fnname, type);
 
-  TREE_PUBLIC (current_function_decl) = 0;
-  TREE_USED (current_function_decl) = 1;
-  DECL_ARTIFICIAL (current_function_decl) = 1;
-  mf_mark (current_function_decl);
+  TREE_PUBLIC (fndecl) = 0;
+  TREE_USED (fndecl) = 1;
+  DECL_ARTIFICIAL (fndecl) = 1;
+  mf_mark (fndecl);
 
   /* Generate the body, one statement at a time.  */
   start_preparsed_function (fndecl, /*attrs=*/NULL_TREE, SF_PRE_PARSED);