public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] hir: Add `get_to_expr` to RangeToIncl Date: Wed, 27 Jul 2022 13:20:06 +0000 (GMT) [thread overview] Message-ID: <20220727132006.A6CE83857001@sourceware.org> (raw) 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 */
reply other threads:[~2022-07-27 13:20 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220727132006.A6CE83857001@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).