[Ada] Reuse Is_Rewrite_Substitution where possible

2022-05-10 Thread Pierre-Marie de Rodat via Gcc-patches
Replace comparisons of Original_Node with semantically equivalent but high-level calls to Is_Rewrite_Substitution. Offending occurrences found with: $ grep -n "Original_Node (\([A-Za-z_]\+\)) /\?= \1" *.adb Code cleanup only; semantics is unaffected. Tested on x86_64-pc-linux-gnu, committed on

[Ada] Reuse Is_Rewrite_Substitution where possible

2018-05-30 Thread Pierre-Marie de Rodat
Use a high-level Is_Rewrite_Substitution instead of a low-level inequality, with the intention to improve the code easier to read. Semantics unaffected, so no test provided. Tested on x86_64-pc-linux-gnu, committed on trunk 2018-05-30 Piotr Trojanek gcc/ada/ * errout.adb, exp_aggr.ad