main.cc
changeset 959 8bfcc8e62bd6
parent 956 513809fbfaf9
child 980 9ed5aff159db
--- a/main.cc	Sat Dec 06 19:11:32 2014 +0000
+++ b/main.cc	Sat Dec 06 19:14:23 2014 +0000
@@ -134,7 +134,7 @@
 
 
 int main(int argc, char **argv) {
-  symbol_c *tree_root;
+  symbol_c *tree_root, *ordered_tree_root;
   char * builddir = NULL;
   int optres, errflg = 0;
   int path_len;
@@ -252,11 +252,11 @@
   //add_en_eno_param_decl_c::add_to(tree_root);
 
   /* Do semantic verification of code */
-  if (stage3(tree_root) < 0)
+  if (stage3(tree_root, &ordered_tree_root) < 0)
     return EXIT_FAILURE;
   
   /* 3rd Pass */
-  if (stage4(tree_root, builddir) < 0)
+  if (stage4(ordered_tree_root, builddir) < 0)
     return EXIT_FAILURE;
 
   /* 4th Pass */