Remove erroneous check for S1 and R1, and add missing declrataion.
--- 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) */
--- 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) */