fix #41
fix
Merge pull request #43 from coolwanglu/fix

fix #41
queue phi changes for all parts of legalizing switches, as they may not be ready yet; fixes emscripten#2539
1.21.5
1.21.6