From ff643446f595c028f158ef95f3ca0ef23e072a17 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 28 Jan 2013 11:42:01 +0100 Subject: [PATCH] Smaller cleanup Change-Id: I42a1de385e286bf1e4568769886034161f7fe500 Reviewed-by: Simon Hausmann --- qv4codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qv4codegen.cpp b/qv4codegen.cpp index b5c0e9d..9b1b7cd 100644 --- a/qv4codegen.cpp +++ b/qv4codegen.cpp @@ -1165,7 +1165,7 @@ bool Codegen::visit(BinaryExpression *ast) case QSOperator::InplaceURightShift: case QSOperator::InplaceXor: { IR::Expr* right = *expression(ast->right); - if (! (left->asTemp() || left->asName() || left->asSubscript() || left->asMember())) + if (!left->isLValue()) throwSyntaxError(ast->operatorToken, QCoreApplication::translate("qv4codegen", "left-hand side of inplace operator is not an lvalue")); if (_expr.accept(nx)) { -- 2.7.4