Smaller cleanup
authorLars Knoll <lars.knoll@digia.com>
Mon, 28 Jan 2013 10:42:01 +0000 (11:42 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 28 Jan 2013 12:34:32 +0000 (13:34 +0100)
Change-Id: I42a1de385e286bf1e4568769886034161f7fe500
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4codegen.cpp

index b5c0e9d..9b1b7cd 100644 (file)
@@ -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)) {