summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/UnCurry.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-22 12:04:27 -0800
committerPaul Phillips <paulp@improving.org>2012-02-22 12:26:32 -0800
commit455129b32d8634856917f9ecf67987567fb46723 (patch)
tree61ec41d4a08227d20f6425577862ed0ce43d8db5 /src/compiler/scala/tools/nsc/transform/UnCurry.scala
parent031dbf4276971e108fb01699c0bf65eb85b2e1ff (diff)
downloadscala-455129b32d8634856917f9ecf67987567fb46723.tar.gz
scala-455129b32d8634856917f9ecf67987567fb46723.tar.bz2
scala-455129b32d8634856917f9ecf67987567fb46723.zip
More use of perRunCaches.
In SpecializeTypes and beyond. It is hard for me to say with confidence what might affect the IDE for the worse, but this is all intended for the IDE's benefit (if only in terms of insurance) and hopefully intention matches reality.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index 256c829db0..8b735455ba 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -129,7 +129,7 @@ abstract class UnCurry extends InfoTransform
appliedType(NonLocalReturnControlClass.typeConstructor, List(argtype))
/** A hashmap from method symbols to non-local return keys */
- private val nonLocalReturnKeys = new mutable.HashMap[Symbol, Symbol]
+ private val nonLocalReturnKeys = perRunCaches.newMap[Symbol, Symbol]()
/** Return non-local return key for given method */
private def nonLocalReturnKey(meth: Symbol) =