Skip to content

Commit

Permalink
Avoid extra copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Jul 21, 2023
1 parent 8519476 commit 484f277
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ internal class KotlinFirLoader(
}
}

val sourceFiles = files.map(::KtVirtualFileSourceFile).toSet()
val sourceFiles = files.mapTo(mutableSetOf(), ::KtVirtualFileSourceFile)
val input = ModuleCompilerInput(
targetId = TargetId(JvmProtoBufUtil.DEFAULT_MODULE_NAME, targetName),
groupedSources = GroupedKtSources(
Expand Down

0 comments on commit 484f277

Please sign in to comment.