aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.loader/TestLeak.java
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-09-07 17:24:40 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-07 09:36:32 +0100
commit72ae51d581dc8bcf8dcec9b5e0e1560d9e4099d1 (patch)
tree535590f474425e791455c4f7e515f9c66c8dcc5d /libjava/testsuite/libjava.loader/TestLeak.java
parentdcc02d3168b4457746f6ab1d8e73cf9d15c6d4e8 (diff)
downloadgcc-72ae51d581dc8bcf8dcec9b5e0e1560d9e4099d1.zip
gcc-72ae51d581dc8bcf8dcec9b5e0e1560d9e4099d1.tar.gz
gcc-72ae51d581dc8bcf8dcec9b5e0e1560d9e4099d1.tar.bz2
ada: Cleanup detection of code within generic instances
To check if a node is located in a generic instance we can either look at Instantiation_Location or at the Instantiation_Depth, but just looking at the location is simpler and more efficient. Cleanup related to improved detection of references to uninitialized objects; semantics is unaffected. gcc/ada/ * sem_ch13.adb (Add_Call): Just look at Instantiation_Depth. * sem_ch3.adb (Derive_Subprograms): Likewise. * sem_warn.adb (Check_References): Remove redundant filtering with Instantiation_Depth that follows filtering with Instantiation_Location. * sinput.adb (Instantiation_Depth): Reuse Instantiation_Location.
Diffstat (limited to 'libjava/testsuite/libjava.loader/TestLeak.java')
0 files changed, 0 insertions, 0 deletions