diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-11-18 11:20:05 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-11-18 11:20:05 +0000 |
commit | 7f72290295636bc98822dee5994260c480ff42bd (patch) | |
tree | 04e48dab81f048ef34a8cfe0eaee23fbd826d61a /src/compiler | |
parent | bc452c0ef2889e1071e1685688771900903b8527 (diff) | |
download | scala-7f72290295636bc98822dee5994260c480ff42bd.tar.gz scala-7f72290295636bc98822dee5994260c480ff42bd.tar.bz2 scala-7f72290295636bc98822dee5994260c480ff42bd.zip |
Fixed #1453.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/icode/GenICode.scala | 4 |
1 files changed, 1 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 736780a435..5a257571a8 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala @@ -1036,9 +1036,7 @@ abstract class GenICode extends SubComponent { ctx.bb.emit(CALL_PRIMITIVE(Conversion(from, to)), pos); } } else if (from == SCALA_ALL) { - ctx.bb.emit(DROP(from)) - ctx.bb.emit(getZeroOf(ctx.method.returnType)) - ctx.bb.emit(RETURN(ctx.method.returnType)) + ctx.bb.emit(THROW()) ctx.bb.enterIgnoreMode } else if (from == SCALA_ALLREF) { ctx.bb.emit(DROP(from)) |