From: Lars Knoll Date: Mon, 28 Jan 2013 10:42:01 +0000 (+0100) Subject: Smaller cleanup X-Git-Tag: upstream/5.2.1~669^2~659^2~362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff643446f595c028f158ef95f3ca0ef23e072a17;p=platform%2Fupstream%2Fqtdeclarative.git Smaller cleanup Change-Id: I42a1de385e286bf1e4568769886034161f7fe500 Reviewed-by: Simon Hausmann --- 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)) {