Skip to content

Commit 23aceb1

Browse files
committed
Remove duplicated asserion
1 parent 8636508 commit 23aceb1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,9 @@ class Compiler {
108108
new CollectSuperCalls, // Find classes that are called with super
109109
new DropInlined, // Drop Inlined nodes, since backend has no use for them
110110
new LabelDefs), // Converts calls to labels to jumps
111-
List(checkedIdOverflow(new GenBCode)) // Generate JVM bytecode
111+
List(new GenBCode) // Generate JVM bytecode
112112
)
113113

114-
private def checkedIdOverflow(phase: Phase): Phase = {
115-
assert(phase.id <= Periods.MaxPossiblePhaseId)
116-
phase
117-
}
118-
119114
var runId = 1
120115
def nextRunId = {
121116
runId += 1; runId

0 commit comments

Comments
 (0)