summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/PhaseAssembly.scala
diff options
context:
space:
mode:
authorIsmael Juma <ismael@juma.me.uk>2011-12-27 14:16:53 +0000
committerIsmael Juma <ismael@juma.me.uk>2011-12-27 14:16:53 +0000
commit06d8e3a78d310704718d82fc83cdb0e9eb92e203 (patch)
treeb7b05c7d42c8f0287e6f66e877dbcb58078bdff8 /src/compiler/scala/tools/nsc/PhaseAssembly.scala
parentf737e35ddf43599043ab78404c4f9a13e6d02c9b (diff)
downloadscala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.tar.gz
scala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.tar.bz2
scala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.zip
Fix SI-5341: PhaseAssembly.removeDanglingNodes removes elements from mutable.Map
during iteration.
Diffstat (limited to 'src/compiler/scala/tools/nsc/PhaseAssembly.scala')
-rw-r--r--src/compiler/scala/tools/nsc/PhaseAssembly.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/PhaseAssembly.scala b/src/compiler/scala/tools/nsc/PhaseAssembly.scala
index f25ea6fe5e..a627b982b6 100644
--- a/src/compiler/scala/tools/nsc/PhaseAssembly.scala
+++ b/src/compiler/scala/tools/nsc/PhaseAssembly.scala
@@ -185,7 +185,7 @@ trait PhaseAssembly {
* dependency on something that is dropped.
*/
def removeDanglingNodes() {
- for (node <- nodes.valuesIterator filter (_.phaseobj.isEmpty)) {
+ for (node <- nodes.values filter (_.phaseobj.isEmpty)) {
val msg = "dropping dependency on node with no phase object: "+node.phasename
informProgress(msg)
nodes -= node.phasename