[vala/wip/transform: 65/107] codegen: Fix capture of	compiler-generated internal temp variables
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala/wip/transform: 65/107] codegen: Fix capture of	compiler-generated internal temp variables
- Date: Fri, 21 Oct 2016 14:16:18 +0000 (UTC)
commit e3964e32915a2e198b1c59f6208c884810dd2559
Author: Luca Bruno <lucabru src gnome org>
Date:   Mon Oct 22 16:12:31 2012 +0200
    codegen: Fix capture of compiler-generated internal temp variables
    
    Make variable_name_map be global instead of per EmitContext.
 codegen/valaccodebasemodule.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 6508005..ea02eb7 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -38,7 +38,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                public int next_temp_var_id;
                public bool current_method_inner_error;
                public bool current_method_return;
-               public Map<string,string> variable_name_map = new HashMap<string,string> (str_hash, 
str_equal);
                public Map<string,int> closure_variable_count_map = new HashMap<string,int> (str_hash, 
str_equal);
                public Map<LocalVariable,int> closure_variable_clash_map = new HashMap<LocalVariable,int> ();
 
@@ -336,7 +335,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
        public Set<string> wrappers;
        Set<Symbol> generated_external_symbols;
 
-       public Map<string,string> variable_name_map { get { return emit_context.variable_name_map; } }
+       public Map<string,string> variable_name_map = new HashMap<string,string> (str_hash, str_equal);
 
        public static int ccode_attribute_cache_index = CodeNode.get_attribute_cache_index ();
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]