don't set the request-Lvalue flag for an array index

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 23:35:49 +01:00
parent 0af62801f4
commit d70fcdec42

2
ast.c
View file

@ -2045,7 +2045,7 @@ bool ast_array_index_codegen(ast_array_index *self, ast_function *func, bool lva
}
cgen = self->index->expression.codegen;
if (!(*cgen)((ast_expression*)(self->index), func, true, &iridx))
if (!(*cgen)((ast_expression*)(self->index), func, false, &iridx))
return false;
cgen = arr->getter->expression.codegen;