diff options
author | Cristian Tălău <cristitalau@gmail.com> | 2012-03-01 17:23:28 +0100 |
---|---|---|
committer | Cristian Tălău <cristitalau@gmail.com> | 2012-03-01 17:23:28 +0100 |
commit | 8c6466c6e9d881fcad414bae5101a96ed2aade71 (patch) | |
tree | a4a7059161792f8d9042759fe0c9a3ec9d09d3a5 /src | |
parent | 84ab871a18c2a5b2d4dce8c2f42b47f1aada2a09 (diff) | |
download | scala-8c6466c6e9d881fcad414bae5101a96ed2aade71.tar.gz scala-8c6466c6e9d881fcad414bae5101a96ed2aade71.tar.bz2 scala-8c6466c6e9d881fcad414bae5101a96ed2aade71.zip |
Fixed Issue 5321
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/opt/ClosureElimination.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/opt/ClosureElimination.scala b/src/compiler/scala/tools/nsc/backend/opt/ClosureElimination.scala index e8abee7d06..ff45bb8fd1 100644 --- a/src/compiler/scala/tools/nsc/backend/opt/ClosureElimination.scala +++ b/src/compiler/scala/tools/nsc/backend/opt/ClosureElimination.scala @@ -108,7 +108,7 @@ abstract class ClosureElimination extends SubComponent { case LOAD_LOCAL(l) if info.bindings isDefinedAt LocalVar(l) => val t = info.getBinding(l) t match { - case Deref(LocalVar(_)) | Deref(This) | Const(_) => + case Deref(This) | Const(_) => bb.replaceInstruction(i, valueToInstruction(t)); log("replaced " + i + " with " + t) |