aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2020-12-21 18:32:15 +0000
committerPhilip Herron <herron.philip@googlemail.com>2020-12-23 13:04:50 +0000
commitaa2fbb5e48f6218035d7bde1336345cebf120d3e (patch)
treee69dd540813c69f43fc05a76d33395a896791292 /gcc/rust/ast/rust-expr.h
parentb021811ab700156e1e3d56200d585b3180264f4f (diff)
downloadgcc-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.h4
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 */