diff options
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index ea66884..9531cf2 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -501,7 +501,6 @@ public: NOT }; -private: // Note: overload negation via std::ops::Neg and not via std::ops::Not // Negation only works for signed integer and floating-point types, NOT only // works for boolean and integer types (via bitwise NOT) @@ -531,6 +530,8 @@ public: virtual void accept_vis (ASTVisitor &vis) OVERRIDE; + Expr *get_expr () { return main_or_left_expr.get (); } + protected: // Use covariance to implement clone function as returning this object rather // than base |