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] Removed comment copy-pasted from gcc/tree.def
Date: Tue,  7 Feb 2023 17:54:44 +0000 (GMT)	[thread overview]
Message-ID: <20230207175444.E4E163858D35@sourceware.org> (raw)

https://gcc.gnu.org/g:7ffdfcbd244e771ae47f3b4cfbfb9d9f84a4bc3c

commit 7ffdfcbd244e771ae47f3b4cfbfb9d9f84a4bc3c
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date:   Sat Feb 4 12:07:38 2023 -0500

    Removed comment copy-pasted from gcc/tree.def
    
    gcc/rust/ChangeLog:
    
            * backend/rust-compile-expr.cc (CompileExpr::visit): Removed copy-pasted comment.
    
    Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

Diff:
---
 gcc/rust/backend/rust-compile-expr.cc | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc
index 8b56be79e33..76d70cc7605 100644
--- a/gcc/rust/backend/rust-compile-expr.cc
+++ b/gcc/rust/backend/rust-compile-expr.cc
@@ -1341,30 +1341,6 @@ CompileExpr::visit (HIR::MatchExpr &expr)
   // SWITCH_ALL_CASES_P is true if the switch includes a default label or the
   // case label ranges cover all possible values of the condition expression
 
-  /* Switch expression.
-
-     TREE_TYPE is the original type of the condition, before any
-     language required type conversions.  It may be NULL, in which case
-     the original type and final types are assumed to be the same.
-
-     Operand 0 is the expression used to perform the branch,
-     Operand 1 is the body of the switch, which probably contains
-       CASE_LABEL_EXPRs.  It may also be NULL, in which case operand 2
-       must not be NULL.  */
-  // DEFTREECODE (SWITCH_EXPR, "switch_expr", tcc_statement, 2)
-
-  /* Used to represent a case label.
-
-     Operand 0 is CASE_LOW.  It may be NULL_TREE, in which case the label
-       is a 'default' label.
-     Operand 1 is CASE_HIGH.  If it is NULL_TREE, the label is a simple
-       (one-value) case label.  If it is non-NULL_TREE, the case is a range.
-     Operand 2 is CASE_LABEL, which has the corresponding LABEL_DECL.
-     Operand 3 is CASE_CHAIN.  This operand is only used in tree-cfg.cc to
-       speed up the lookup of case labels which use a particular edge in
-       the control flow graph.  */
-  // DEFTREECODE (CASE_LABEL_EXPR, "case_label_expr", tcc_statement, 4)
-
   TyTy::TypeKind scrutinee_kind = check_match_scrutinee (expr, ctx);
   if (scrutinee_kind == TyTy::TypeKind::ERROR)
     {

                 reply	other threads:[~2023-02-07 17:54 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=20230207175444.E4E163858D35@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: link
Be 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).