Skip to content

Commit 6f6af92

Browse files
committed
Remove empty package from entry points init.
1 parent 9fcf594 commit 6f6af92

File tree

5 files changed

+1
-1
lines changed

5 files changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/linker/BuildCallGraph.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BuildCallGraph extends Phase {
4747
entryPointId += 1
4848
callGraphBuilder.pushEntryPoint(x.methodDef, entryPointId)
4949
x.methodDef.owner.ownersIterator.foreach { owner =>
50-
if (owner.is(Module)) {
50+
if (owner.is(Module) && !owner.isEmptyPackage) {
5151
val sourceModule = owner.sourceModule
5252
val moduleEntryPoint =
5353
if (sourceModule.owner.exists && !sourceModule.owner.isEmptyPackage) sourceModule

0 commit comments

Comments
 (0)