aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2020-10-06 11:58:45 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-11-24 05:16:04 -0500
commit3a6fa9a81bdbd5491204e68b2ad5a5d8516d56a1 (patch)
treefc14b46b614d49474e91dba2bc944564165e15ee /gcc/ada/sem_util.adb
parent1b55b8d70f431e29131cc7ca5790490d95625bd0 (diff)
downloadgcc-3a6fa9a81bdbd5491204e68b2ad5a5d8516d56a1.zip
gcc-3a6fa9a81bdbd5491204e68b2ad5a5d8516d56a1.tar.gz
gcc-3a6fa9a81bdbd5491204e68b2ad5a5d8516d56a1.tar.bz2
[Ada] Cleanup expansion of attribute Constrained
gcc/ada/ * exp_attr.adb (Expand_N_Attribute_Reference): Replace calls to Sloc with a local constant Loc; remove call to Analyze_And_Resolve and return, which is exactly what happens anyway (and other branches in the Constrained declare block appear to rely on analysis, resolution and returning happening in all cases). * sem_util.adb: Remove useless parens.
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r--gcc/ada/sem_util.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 1190cfe..3af4f3a 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -25694,7 +25694,7 @@ package body Sem_Util is
end if;
end if;
- return (Empty);
+ return Empty;
end Param_Entity;
----------------------