[phc-internals] [phc commit] r1785 - trunk/src/ast_to_hir
codesite-noreply at google.com
codesite-noreply at google.com
Tue Oct 14 13:52:09 IST 2008
Author: paul.biggar
Date: Tue Oct 14 05:51:04 2008
New Revision: 1785
Modified:
trunk/src/ast_to_hir/AST_to_HIR.h
Log:
Assign_nexts were no longer matched during the conversion from AST to HIR.
Fixed.
Modified: trunk/src/ast_to_hir/AST_to_HIR.h
==============================================================================
--- trunk/src/ast_to_hir/AST_to_HIR.h (original)
+++ trunk/src/ast_to_hir/AST_to_HIR.h Tue Oct 14 05:51:04 2008
@@ -369,19 +369,19 @@
HIR::VARIABLE_NAME* var_name = dynamic_cast<HIR::VARIABLE_NAME*> (lhs);
HIR::Variable_variable* var_var = dynamic_cast<HIR::Variable_variable*>
(lhs);
HIR::Array_access* ia = dynamic_cast<HIR::Array_access*> (lhs);
+ HIR::Array_next * an = dynamic_cast<HIR::Array_next*> (lhs);
// Var doesnt have enough information to tell us if a NULL
// var->array_index indicates a push or a copy. So we have to look in
// ORIG.
// assign_next - $x[] = $y;
- if (ia
- && ia->index == NULL
+ if (an
&& isa<HIR::Rvalue> (expr))
{
HIR::Assign_next* result;
result = new HIR::Assign_next (
- ia->variable_name,
+ an->variable_name,
is_ref,
dyc<HIR::Rvalue> (expr));
copy_attrs (result, orig);
More information about the phc-internals
mailing list