[phc-internals] [phc commit] r1117 - trunk/src/process_ir

codesite-noreply at google.com codesite-noreply at google.com
Mon Mar 31 12:54:08 IST 2008


Author: paul.biggar
Date: Mon Mar 31 04:50:44 2008
New Revision: 1117

Modified:
   trunk/src/process_ir/General.cpp

Log:
Remove hir variable.


Modified: trunk/src/process_ir/General.cpp
==============================================================================
--- trunk/src/process_ir/General.cpp	(original)
+++ trunk/src/process_ir/General.cpp	Mon Mar 31 04:50:44 2008
@@ -6,6 +6,7 @@
  */

 #include "HIR.h"
+#include "process_ir/General.h"
 #include "pass_manager/Pass_manager.h"
 #include "parsing/parse.h"

@@ -52,7 +53,7 @@
 {
  	AST::PHP_script* ast = parse_code (code_string, node->get_filename 
(), node->get_line_number ());

-	AST::PHP_script* hir = pm->run_until (new String ("ast"), 
ast)->as_AST ();
+	ast = pm->run_until (new String ("ast"), ast)->as_AST ();

-	return hir->statements;
+	return ast->statements;
 }


More information about the phc-internals mailing list