Fixed reset of current_varqualifier when generating global initializers, causin RETAIN and other option to be ORed and applied to all subsequent global variables.
authorEdouard Tisserant
Thu, 12 Mar 2015 16:36:33 +0100
changeset 997 7518955c875a
parent 996 c752b113237b
child 1035 0a58b2720976
Fixed reset of current_varqualifier when generating global initializers, causin RETAIN and other option to be ORed and applied to all subsequent global variables.
stage4/generate_c/generate_c_vardecl.cc
--- a/stage4/generate_c/generate_c_vardecl.cc	Mon Mar 09 19:22:00 2015 +0000
+++ b/stage4/generate_c/generate_c_vardecl.cc	Thu Mar 12 16:36:33 2015 +0100
@@ -2134,6 +2134,7 @@
           }
           print_retain();
           s4o.print(")");
+          current_varqualifier = none_vq;
 #if 0
       /* The following code would be for globalinit_vf !!
        * But it is not currently required...