Re: [PATCH] Remove lambda iterators in various HIR classes

2021-10-08 Thread Marc Poulhiès via Gcc-rust
David Faust via Gcc-rust writes: > On 10/8/21 10:45, David Faust via Gcc-rust wrote: >> This patch removes the lambda iterators used in various HIR objects. >> These iterators make interacting with the IR for static analysis more >> difficult. Instead, get_X () helpers are added for accessing e

Re: [PATCH] Remove lambda iterators in various HIR classes

2021-10-08 Thread David Faust via Gcc-rust
On 10/8/21 10:45, David Faust via Gcc-rust wrote: This patch removes the lambda iterators used in various HIR objects. These iterators make interacting with the IR for static analysis more difficult. Instead, get_X () helpers are added for accessing elements, and uses of the iterators replaced

[PATCH] Remove lambda iterators in various HIR classes

2021-10-08 Thread David Faust via Gcc-rust
This patch removes the lambda iterators used in various HIR objects. These iterators make interacting with the IR for static analysis more difficult. Instead, get_X () helpers are added for accessing elements, and uses of the iterators replaced with for loops. The following objects are adjusted in