File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/compiler/scala/tools/nsc/backend/jvm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1301,6 +1301,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with
13011301
13021302 /** local variables whose scope appears in this block. */
13031303 val varsInBlock : mutable.Set [Local ] = new mutable.HashSet
1304+ val lastInstr = b.lastInstruction
13041305
13051306 for (instr <- b) {
13061307
@@ -1579,8 +1580,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with
15791580 lastLineNr
15801581 }
15811582
1582- if (b.lastInstruction == instr)
1583- endPC(b) = jcode.getPC()
1583+ if (instr eq lastInstr) { endPC(b) = jcode.getPC() }
15841584
15851585 // System.err.println("CRTLINE: " + instr.pos + " " +
15861586 // /* (if (instr.pos < clasz.cunit.source.content.length) clasz.cunit.source.content(instr.pos) else '*') + */ " " + crtLine);
You can’t perform that action at this time.
0 commit comments