glsl: Replace foreach_iter and iter.remove() with foreach_list_safe.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Jan 2014 00:46:26 +0000 (16:46 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Jan 2014 19:38:19 +0000 (11:38 -0800)
commit2e113dfab8c7068e083960fcf0b93418c3d79fa3
treef4fb7f8acbc2b827b8a94ea09ffca0e12b9bfc1c
parent838a6871bbcd8cd0493bb39b188129f7d49de47e
glsl: Replace foreach_iter and iter.remove() with foreach_list_safe.

foreach_list_safe allows you to safely remove the current node.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp