diff options
author | Philip Herron <philip.herron@embecosm.com> | 2020-12-21 18:32:15 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2020-12-23 13:04:50 +0000 |
commit | aa2fbb5e48f6218035d7bde1336345cebf120d3e (patch) | |
tree | e69dd540813c69f43fc05a76d33395a896791292 /gcc/rust/ast/rust-expr.h | |
parent | b021811ab700156e1e3d56200d585b3180264f4f (diff) | |
download | gcc-aa2fbb5e48f6218035d7bde1336345cebf120d3e.zip gcc-aa2fbb5e48f6218035d7bde1336345cebf120d3e.tar.gz gcc-aa2fbb5e48f6218035d7bde1336345cebf120d3e.tar.bz2 |
Bring conditionals back since the HIR change.
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index de011c1..8e60557 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -550,6 +550,8 @@ public: return right_expr; } + ExprType get_kind () { return expr_type; } + /* TODO: implement via a function call to std::cmp::PartialEq::eq(&op1, &op2) * maybe? */ protected: @@ -628,6 +630,8 @@ public: return right_expr; } + ExprType get_kind () { return expr_type; } + protected: /* Use covariance to implement clone function as returning this object rather * than base */ |