aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-06-20 16:50:46 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-06-20 16:50:46 +0200
commit6e5468e256dd06eb6988a0eca37c86bc52722457 (patch)
tree76ad85909cc24b3fab44967026e65b812e868bbb /gcc/rust/ast
parent8f996567e84015714bcf322d11a46580611e3377 (diff)
downloadgcc-6e5468e256dd06eb6988a0eca37c86bc52722457.zip
gcc-6e5468e256dd06eb6988a0eca37c86bc52722457.tar.gz
gcc-6e5468e256dd06eb6988a0eca37c86bc52722457.tar.bz2
hir: Add ConstGenericArg and lower them properly
Diffstat (limited to 'gcc/rust/ast')
-rw-r--r--gcc/rust/ast/rust-path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h
index 5642226..03758d0 100644
--- a/gcc/rust/ast/rust-path.h
+++ b/gcc/rust/ast/rust-path.h
@@ -189,6 +189,8 @@ public:
Kind get_kind () const { return kind; }
+ std::unique_ptr<AST::Expr> &get_expression () { return expression; }
+
std::string as_string () const
{
switch (get_kind ())