# HG changeset patch # User Mario de Sousa # Date 1335291473 -3600 # Node ID 1eacd7afcab1be6cf72254f8feb56c70f8d2db26 # Parent 629105224e57790ef9764ead31043e724a664d4f Fix comment. (thanks go to Manuele for pointing it put). diff -r 629105224e57 -r 1eacd7afcab1 stage3/stage3.cc --- a/stage3/stage3.cc Mon Apr 23 16:50:10 2012 +0100 +++ b/stage3/stage3.cc Tue Apr 24 19:17:53 2012 +0100 @@ -40,12 +40,15 @@ #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); tree_root->accept(flow_control_analysis); return 0; } + /* Type safety analysis assumes that flow control analysis has already been completed, * so be sure to call flow_control_analysis() before calling this function */ @@ -60,8 +63,8 @@ } -/* Type safety analysis assumes that flow control analysis has already been completed, - * so be sure to call flow_control_analysis() before calling this function +/* Left value checking assumes that datat type analysis has already been completed, + * so be sure to call type_safety() before calling this function */ static int lvalue_check(symbol_c *tree_root){ lvalue_check_c lvalue_check(tree_root);