linker: Use foreach_list_safe in move_non_declarations
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Jul 2010 19:34:56 +0000 (12:34 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Jul 2010 19:36:32 +0000 (12:36 -0700)
commit303c99f12fd1234a763147f9e081f2544433fc77
treea6108e001f70919e08f64b60a16de8a90ea6f856
parent9303e358cb3062f62c39961ebd4708bf63db03c1
linker: Use foreach_list_safe in move_non_declarations

The node being processed may be removed from the list and put in a
different list.  Not using the safe version caused list processing to
change streams after moving a node.
src/glsl/linker.cpp