Change error message text so as to become more suitable to where they might occur in the source code.
authormjs
Fri, 23 Aug 2013 09:34:04 +0100
changeset 846 24d0be6c31f7
parent 845 5fa872f3d073
child 847 079ab7d4b728
Change error message text so as to become more suitable to where they might occur in the source code.
stage3/lvalue_check.cc
--- a/stage3/lvalue_check.cc	Thu Aug 22 19:12:10 2013 +0100
+++ b/stage3/lvalue_check.cc	Fri Aug 23 09:34:04 2013 +0100
@@ -156,7 +156,7 @@
 void lvalue_check_c::check_assignment_to_constant(symbol_c *lvalue) {
 	unsigned int option = search_var_instance_decl->get_option(lvalue);
 	if (option == search_var_instance_decl_c::constant_opt) {
-		STAGE3_ERROR(0, lvalue, lvalue, "Assignment to CONSTANT variables is not be allowed.");
+		STAGE3_ERROR(0, lvalue, lvalue, "Assignment to CONSTANT variables is not allowed.");
 	}
 }
 
@@ -230,7 +230,7 @@
 	     (typeid( *lvalue ) == typeid( neg_expression_c               )) ||
 	     (typeid( *lvalue ) == typeid( not_expression_c               )) ||
 	     (typeid( *lvalue ) == typeid( function_invocation_c          )))
-		STAGE3_ERROR(0, lvalue, lvalue, "Assigning an expression to an OUT or IN_OUT parameter is not allowed.");
+		STAGE3_ERROR(0, lvalue, lvalue, "Assignment to an expression or a literal value is not allowed.");
 }                                                                  
 
 
@@ -249,7 +249,7 @@
 	     /* B 2.1 Instructions and Operands */
 	     /***********************************/
 	     (typeid( *lvalue ) == typeid( simple_instr_list_c)))
-		STAGE3_ERROR(0, lvalue, lvalue, "Assigning an IL list IN_OUT parameter is not allowed.");
+		STAGE3_ERROR(0, lvalue, lvalue, "Assigning an IL list to an IN_OUT parameter is not allowed.");
 }