Re: [PATCH 3/5] gimple-match: Make code_helper conversions explicit

2021-11-11 Thread Richard Biener via Gcc-patches
On Wed, Nov 10, 2021 at 1:47 PM Richard Sandiford via Gcc-patches wrote: > > code_helper provides conversions to tree_code and combined_fn. > Now that the codebase is C++11, we can mark these conversions as > explicit. This avoids accidentally using code_helpers with > functions that take tree_co

[PATCH 3/5] gimple-match: Make code_helper conversions explicit

2021-11-10 Thread Richard Sandiford via Gcc-patches
code_helper provides conversions to tree_code and combined_fn. Now that the codebase is C++11, we can mark these conversions as explicit. This avoids accidentally using code_helpers with functions that take tree_codes, which would previously entail a hidden unchecked conversion. Tested on aarch64