public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2358] ada: Reuse code in Is_Fully_Initialized_Type
@ 2023-07-06 11:38 Marc Poulhi?s
0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-07-06 11:38 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:db01ce5381fc38c50454b544d6692d2b7e39ac29
commit r14-2358-gdb01ce5381fc38c50454b544d6692d2b7e39ac29
Author: Viljar Indus <indus@adacore.com>
Date: Mon Jun 19 14:11:20 2023 +0300
ada: Reuse code in Is_Fully_Initialized_Type
gcc/ada/
* sem_util.adb (Is_Fully_Initialized_Type): Avoid recalculating
the underlying type twice.
Diff:
---
gcc/ada/sem_util.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 736751f5fae..821aacf1ccb 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -17333,7 +17333,7 @@ package body Sem_Util is
declare
Init : constant Entity_Id :=
(Find_Optional_Prim_Op
- (Underlying_Type (Typ), Name_Initialize));
+ (Utyp, Name_Initialize));
begin
if Present (Init)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-06 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 11:38 [gcc r14-2358] ada: Reuse code in Is_Fully_Initialized_Type Marc Poulhi?s
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).