Re: [Mesa-dev] [PATCH 2/5] compiler/list: add and use for_range_list_safe

2016-05-10 Thread Ian Romanick
As time goes on, I become less and less a fan of the proliferation of for_* macros... especially ones that are only used in one or two places. On 05/07/2016 03:05 PM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > This macro avoids undefined behaviour that crashes

[Mesa-dev] [PATCH 2/5] compiler/list: add and use for_range_list_safe

2016-05-08 Thread Nicolai Hähnle
From: Nicolai Hähnle This macro avoids undefined behaviour that crashes gcc's ubsan. --- src/compiler/glsl/list.h | 13 + src/compiler/glsl/opt_dead_code_local.cpp | 7 +-- src/compiler/glsl/opt_tree_grafting.cpp | 5 + 3 files