diff options
author | Philip Herron <herron.philip@googlemail.com> | 2020-05-30 19:01:06 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:15 +0000 |
commit | de6bc4da463e949ed63a636c3d8fdac0859d1c4f (patch) | |
tree | 5afac641d21af3db1399d0394fb6ee7546dc86f2 /gcc/rust/ast/rust-expr.h | |
parent | f230adf6179df01a709bacc8e7e83a160d04aeb2 (diff) | |
download | gcc-de6bc4da463e949ed63a636c3d8fdac0859d1c4f.zip gcc-de6bc4da463e949ed63a636c3d8fdac0859d1c4f.tar.gz gcc-de6bc4da463e949ed63a636c3d8fdac0859d1c4f.tar.bz2 |
Lower NegationExprs
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 |