public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Marc Poulhi?s <dkm@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2843] ada: Small refactor Date: Fri, 28 Jul 2023 07:30:56 +0000 (GMT) [thread overview] Message-ID: <20230728073056.74661385AF89@sourceware.org> (raw) https://gcc.gnu.org/g:f30396a0e1887cc5d5bf712f4f45bc37c90a3c7c commit r14-2843-gf30396a0e1887cc5d5bf712f4f45bc37c90a3c7c Author: Viljar Indus <indus@adacore.com> Date: Tue Jul 11 15:20:15 2023 +0300 ada: Small refactor gcc/ada/ * exp_util.adb (Find_Optional_Prim_Op): use "No" instead of "= Empty" Diff: --- gcc/ada/exp_util.adb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb index 66e1acbf65e..9f843d6d71e 100644 --- a/gcc/ada/exp_util.adb +++ b/gcc/ada/exp_util.adb @@ -6291,8 +6291,9 @@ package body Exp_Util is Typ := Underlying_Type (Typ); - -- We cannot find the operation if there is no full view available. - if Typ = Empty then + -- We cannot find the operation if there is no full view available + + if No (Typ) then return Empty; end if;
reply other threads:[~2023-07-28 7:30 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=20230728073056.74661385AF89@sourceware.org \ --to=dkm@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).