diff options
author | Philip Herron <herron.philip@googlemail.com> | 2020-05-21 22:37:32 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:15 +0000 |
commit | c37f46274613f72c3724c6c95bf78af32f316bd1 (patch) | |
tree | b9ec6ab95acf539c7cb97661a6b7fe63368c68f5 /gcc | |
parent | 0840906b7475bdacbcd0655bb1aa9055925aedeb (diff) | |
download | gcc-c37f46274613f72c3724c6c95bf78af32f316bd1.zip gcc-c37f46274613f72c3724c6c95bf78af32f316bd1.tar.gz gcc-c37f46274613f72c3724c6c95bf78af32f316bd1.tar.bz2 |
Need access to the LHS of the expression
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 827ca0d..4a9716d 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -620,6 +620,8 @@ public: virtual void accept_vis (ASTVisitor &vis) OVERRIDE; + Expr *get_lhs () { return main_or_left_expr.get (); } + void visit_lhs (ASTVisitor &vis) { main_or_left_expr->accept_vis (vis); } void visit_rhs (ASTVisitor &vis) { right_expr->accept_vis (vis); } |