diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-07 22:44:51 -0800 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-08 17:22:23 +0100 |
commit | 759d70e8a4ef5d35385b3dbc6aed471f3480ea0e (patch) | |
tree | b15f82ffb5b199bbb68a6e599fe299af9172cae2 /qv4codegen_p.h | |
parent | 6287991abb09441e6990b1e0b05f393ce2e3d08c (diff) |
Keep references while moving other expressions into a temp
delete and typeof need to get correct references as arguments.
But we still need to evaluate other expressions correctly. The
best way to do that is to store them in a temp.
Change-Id: I7bcd152742bf752df47fd63a837952c57ea70bf5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qv4codegen_p.h')
-rw-r--r-- | qv4codegen_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qv4codegen_p.h b/qv4codegen_p.h index 474e5580e8..ba3b477e1b 100644 --- a/qv4codegen_p.h +++ b/qv4codegen_p.h @@ -201,6 +201,7 @@ protected: IR::Expr *member(IR::Expr *base, const QString *name); IR::Expr *subscript(IR::Expr *base, IR::Expr *index); IR::Expr *argument(IR::Expr *expr); + IR::Expr *reference(IR::Expr *expr); IR::Expr *unop(IR::AluOp op, IR::Expr *expr); IR::Expr *binop(IR::AluOp op, IR::Expr *left, IR::Expr *right); IR::Expr *call(IR::Expr *base, IR::ExprList *args); |