public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] hir: Add `get_to_expr` to RangeToIncl
@ 2022-07-27 13:20 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-07-27 13:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a7f46cc7fbdf5353c0f7cc3cc850880d1fd452e1

commit a7f46cc7fbdf5353c0f7cc3cc850880d1fd452e1
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Fri Jul 22 15:11:29 2022 +0200

    hir: Add `get_to_expr` to RangeToIncl

Diff:
---
 gcc/rust/hir/tree/rust-hir-expr.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index c695412e766..327a9accfe1 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -2716,6 +2716,8 @@ public:
   void accept_vis (HIRFullVisitor &vis) override;
   void accept_vis (HIRExpressionVisitor &vis) override;
 
+  std::unique_ptr<Expr> &get_to_expr () { return to; };
+
 protected:
   /* Use covariance to implement clone function as returning this object rather
    * than base */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-27 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 13:20 [gcc/devel/rust/master] hir: Add `get_to_expr` to RangeToIncl Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).