stage3/stage3.cc
changeset 508 dc6906338042
parent 444 92d40d2a7adc
child 510 9317e04c1dde
--- a/stage3/stage3.cc	Sat Apr 14 18:05:50 2012 +0100
+++ b/stage3/stage3.cc	Sat Apr 14 20:02:36 2012 +0200
@@ -38,7 +38,7 @@
 #include "fill_candidate_datatypes.hh"
 #include "narrow_candidate_datatypes.hh"
 #include "print_datatypes_error.hh"
-
+#include "lvalue_check.hh"
 
 static int flow_control_analysis(symbol_c *tree_root){
   flow_control_analysis_c flow_control_analysis(tree_root);
@@ -58,6 +58,10 @@
 	tree_root->accept(print_datatypes_error);
 	if (print_datatypes_error.get_error_found())
 		return -1;
+	lvalue_check_c lvalue_check(tree_root);
+	tree_root->accept(lvalue_check);
+	if (lvalue_check.get_error_found())
+		return -1;
 	return 0;
 }