# HG changeset patch
# User Mario de Sousa <msousa@fe.up.pt>
# Date 1335195845 -3600
# Node ID 6510ee2eaab9c47a9ae9125e31320a5b67b946da
# Parent  1d83209aabfe8f469485d2bf64af1f6ae720f53c
Remove erroneous check for S1 and R1, and add missing declrataion.

diff -r 1d83209aabfe -r 6510ee2eaab9 stage3/lvalue_check.cc
--- a/stage3/lvalue_check.cc	Sat Apr 21 17:42:07 2012 +0200
+++ b/stage3/lvalue_check.cc	Mon Apr 23 16:44:05 2012 +0100
@@ -61,6 +61,7 @@
 
 lvalue_check_c::lvalue_check_c(symbol_c *ignore) {
 	error_count = 0;
+	current_il_operand = NULL;
 }
 
 lvalue_check_c::~lvalue_check_c(void) {
@@ -405,15 +406,6 @@
 	return NULL;
 }
 
-void *lvalue_check_c::visit(S1_operator_c *symbol) {
-	verify_is_lvalue(current_il_operand);
-	return NULL;
-}
-
-void *lvalue_check_c::visit(R1_operator_c *symbol) {
-	verify_is_lvalue(current_il_operand);
-	return NULL;
-}
 
 /***************************************/
 /* B.3 - Language ST (Structured Text) */
diff -r 1d83209aabfe -r 6510ee2eaab9 stage3/lvalue_check.hh
--- a/stage3/lvalue_check.hh	Sat Apr 21 17:42:07 2012 +0200
+++ b/stage3/lvalue_check.hh	Mon Apr 23 16:44:05 2012 +0100
@@ -50,6 +50,7 @@
     int error_count;
     int current_display_error_level;
     std::vector <token_c *> control_variables;
+    symbol_c *current_il_operand;
 
     void verify_is_lvalue              (symbol_c *lvalue);
     void check_assignment_to_controlvar(symbol_c *lvalue);
@@ -99,8 +100,6 @@
     void *visit(STN_operator_c *symbol);
     void *visit(S_operator_c *symbol);
     void *visit(R_operator_c *symbol);
-    void *visit(S1_operator_c *symbol);
-    void *visit(R1_operator_c *symbol);
 
     /***************************************/
     /* B.3 - Language ST (Structured Text) */