[phc-internals] [phc commit] r1149 - trunk/src/process_hir

codesite-noreply at google.com codesite-noreply at google.com
Sun Apr 6 17:32:33 IST 2008


Author: paul.biggar
Date: Sun Apr  6 09:31:42 2008
New Revision: 1149

Modified:
   trunk/src/process_hir/HIR_to_AST.h

Log:
Fix unparsing HIR:B:ranches.


Modified: trunk/src/process_hir/HIR_to_AST.h
==============================================================================
--- trunk/src/process_hir/HIR_to_AST.h	(original)
+++ trunk/src/process_hir/HIR_to_AST.h	Sun Apr  6 09:31:42 2008
@@ -254,10 +254,10 @@
 		return result;
 	}

-	AST::Branch* fold_impl_branch(HIR::Branch* orig, AST::Expr* expr, 
AST::LABEL_NAME* iftrue, AST::LABEL_NAME* iffalse)
+	AST::Branch* fold_impl_branch(HIR::Branch* orig, AST::VARIABLE_NAME* 
variable_name, AST::LABEL_NAME* iftrue, AST::LABEL_NAME* iffalse)
 	{
 		AST::Branch* result;
-		result = new AST::Branch(expr, iftrue, iffalse);
+		result = new AST::Branch(wrap_var_name (variable_name), iftrue, iffalse);
 		result->attrs = orig->attrs;
 		return result;
 	}


More information about the phc-internals mailing list