Fix constant_folding missing call. [Bug found by Mario.]
authorManuele Conti <conti.ma@alice.it>
Thu, 03 Jan 2013 20:34:10 +0100
changeset 787 6e2671e0f1a8
parent 784 1e1c04ac8dab
child 788 aa56031e5cb3
Fix constant_folding missing call. [Bug found by Mario.]
stage3/constant_folding.cc
--- a/stage3/constant_folding.cc	Thu Jan 03 11:39:27 2013 +0100
+++ b/stage3/constant_folding.cc	Thu Jan 03 20:34:10 2013 +0100
@@ -965,6 +965,7 @@
 void *constant_folding_c::visit(program_declaration_c *symbol) {
 	symbol_c *var_name;
 
+	symbol->var_declarations->accept(*this);
 	values.clear(); /* Clear global map */
 	search_var_instance_decl_c search_var_instance_decl(symbol);
 	function_param_iterator_c fpi(symbol);