Skip to content

Commit e3d1d96

Browse files
committed
Move primitives
1 parent c49972c commit e3d1d96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
3535
import coreBTypes._
3636
import BCodeBodyBuilder._
3737

38+
private val primitives = new DottyPrimitives(ctx)
39+
3840
/*
3941
* Functionality to build the body of ASM MethodNode, except for `synchronized` and `try` expressions.
4042
*/

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ class DottyBackendInterface(val outputDirectory: AbstractFile, val superCallsMap
5252
@threadUnsafe lazy val AnnotationRetentionRuntimeAttr: TermSymbol = ctx.requiredClass("java.lang.annotation.RetentionPolicy").linkedClass.requiredValue("RUNTIME")
5353
@threadUnsafe lazy val JavaAnnotationClass: ClassSymbol = ctx.requiredClass("java.lang.annotation.Annotation")
5454

55-
val primitives = new DottyPrimitives(ctx)
56-
5755
private def erasureString(clazz: Class[_]): String = {
5856
if (clazz.isArray) "Array[" + erasureString(clazz.getComponentType) + "]"
5957
else clazz.getName

0 commit comments

Comments
 (0)