Skip to content

Commit 35c353d

Browse files
committed
Removed unecessary check
1 parent 409c66c commit 35c353d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
585585
def lineNumber(tree: Tree): Unit = {
586586
if (!emitLines || !tree.span.exists) return;
587587
// Use JSR-45 mapping for inlined trees defined outside of the current compilation unit
588-
if tree.source != cunit.source || (tree.isInstanceOf[Inlined] && tree.asInstanceOf[Inlined].expansion.source != cunit.source) then
588+
if tree.source != cunit.source then
589589
sourceMap.lineFor(tree) match
590590
case Some(nr) =>
591591
return emitNr(nr)

0 commit comments

Comments
 (0)