summaryrefslogtreecommitdiff
path: root/test/files/neg/t5318c.scala
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-25 16:30:46 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-26 08:26:43 -0800
commit5f3cd8683d8b2e7429e73c2fa7199232ea7c46ca (patch)
tree276fcd18c0eb45639ff4c29cf3bffa23df0dada7 /test/files/neg/t5318c.scala
parent28a716190c5faf549ed302a1c19d9611c32d2010 (diff)
downloadscala-5f3cd8683d8b2e7429e73c2fa7199232ea7c46ca.tar.gz
scala-5f3cd8683d8b2e7429e73c2fa7199232ea7c46ca.tar.bz2
scala-5f3cd8683d8b2e7429e73c2fa7199232ea7c46ca.zip
SI-7181 Eliminate unnecessary duplication of finally blocks
The main body of a try and each exception handler were getting a copy of the finally block for the "normal" flow case (i.e. where they don't throw an uncaught exception or use "return" to exit early). But that's not necessary. With this commit the try body and each exception handler can all jump to the same copy of the finally block on a normal exit. A byte code test is included to ensure we're getting fewer copies of the finally block. inline-ex-handlers.check is updated because the icode is a bit different without the extra finally block copies.
Diffstat (limited to 'test/files/neg/t5318c.scala')
0 files changed, 0 insertions, 0 deletions