summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2007-07-20 12:40:16 +0000
committerIulian Dragos <jaguarul@gmail.com>2007-07-20 12:40:16 +0000
commit444991fd00e4592cca2f76280ae9f53aa1815005 (patch)
treef6f7ed68ec6be829f26ce5f9cd9176e6c78954f6 /src
parentf3c134a70b0c0094eb0193c85987ee13a68b5a49 (diff)
downloadscala-444991fd00e4592cca2f76280ae9f53aa1815005.tar.gz
scala-444991fd00e4592cca2f76280ae9f53aa1815005.tar.bz2
scala-444991fd00e4592cca2f76280ae9f53aa1815005.zip
Fixed bug #1235
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/GenICode.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
index 629701bfda..91832c0346 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
@@ -976,7 +976,7 @@ abstract class GenICode extends SubComponent {
var ctx1 = genLoad(selector, ctx, INT)
val afterCtx = ctx1.newBlock
var caseCtx: Context = null
- val kind = toTypeKind(tree.tpe)
+ generatedType = toTypeKind(tree.tpe)
var targets: List[BasicBlock] = Nil
var tags: List[Int] = Nil
@@ -988,7 +988,7 @@ abstract class GenICode extends SubComponent {
val tmpCtx = ctx1.newBlock
targets = tmpCtx.bb :: targets
- caseCtx = genLoad(body, tmpCtx , kind)
+ caseCtx = genLoad(body, tmpCtx , generatedType)
caseCtx.bb.emit(JUMP(afterCtx.bb), caze.pos)
caseCtx.bb.close
@@ -996,7 +996,7 @@ abstract class GenICode extends SubComponent {
val tmpCtx = ctx1.newBlock
default = tmpCtx.bb
- caseCtx = genLoad(body, tmpCtx , kind)
+ caseCtx = genLoad(body, tmpCtx , generatedType)
caseCtx.bb.emit(JUMP(afterCtx.bb), caze.pos)
caseCtx.bb.close