V4 IR: changed worklist used while doing optimizations.
authorErik Verbruggen <erik.verbruggen@digia.com>
Mon, 10 Feb 2014 13:11:52 +0000 (14:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 14 Feb 2014 11:34:42 +0000 (12:34 +0100)
commit0d7c70a12ef74e69f7b4cccfeb7d36a6bef4e1c2
treeece172e1f48171d7c726acbb29d10e400829ee69
parent27e2593fa2948d3afc2ace4b36194f0c0e54b908
V4 IR: changed worklist used while doing optimizations.

Change the worklist in the optimizeSSA function to allow only one entry
for a statement. This prevents re-processing a statement multiple times,
and could lead to crashes when the statement was removed in an earlier
pass.

Change-Id: I2f09cf74525cfe19708ec7a8bc6d555218625e87
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4ssa.cpp