aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/inline.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2024-05-15 10:58:33 +0200
committerMarc Poulhiès <poulhies@adacore.com>2024-06-20 10:50:53 +0200
commit09ed91df30102e17ac5c59bab314b8b37606c710 (patch)
tree981841905efac35f2b39f535f4f0eb392df98a39 /gcc/ada/inline.adb
parent42305c7a3acb29b7bedef4d90dbbe032a5f985c5 (diff)
downloadgcc-09ed91df30102e17ac5c59bab314b8b37606c710.zip
gcc-09ed91df30102e17ac5c59bab314b8b37606c710.tar.gz
gcc-09ed91df30102e17ac5c59bab314b8b37606c710.tar.bz2
ada: Remove redundant conditions from freezing code
Code cleanup; behavior is unaffected. gcc/ada/ * freeze.adb (Check_Current_Instance): This routine is only called with parameter E being a type entity, so there is no need to check for types just before the equality with E. * sem_ch13.adb (Analyze_Aspect_Specifications): Regroup condition to avoid unnecessary evaluation. (Check_Aspect_At_End_Of_Declarations): If In_Instance is true, then the routine exits early.
Diffstat (limited to 'gcc/ada/inline.adb')
0 files changed, 0 insertions, 0 deletions