diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Phase.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Phase.scala b/src/compiler/scala/tools/nsc/Phase.scala index 882b96d84d..8cf93f6eea 100644 --- a/src/compiler/scala/tools/nsc/Phase.scala +++ b/src/compiler/scala/tools/nsc/Phase.scala @@ -24,7 +24,7 @@ abstract class Phase(val prev: Phase) { def flagMask: Long = fmask private var nx: Phase = this - if (prev ne null) prev.nx = this + if ((prev ne null) && (prev ne NoPhase)) prev.nx = this def next: Phase = nx |