IR: more verbose unsatisfied phase requirement reporting

This commit is contained in:
Anton Bannykh
2019-03-12 20:08:39 +03:00
parent 9dd9ef1cf0
commit 017cd3a0f6
@@ -81,7 +81,10 @@ abstract class AbstractNamedPhaseWrapper<in Context : CommonBackendContext, Inpu
return input as Output
}
assert(phaserState.alreadyDone.containsAll(prerequisite))
assert(phaserState.alreadyDone.containsAll(prerequisite)) {
"Lowering $name: phases ${(prerequisite - phaserState.alreadyDone).map { it.name }} are required, but not satisfied"
}
context.inVerbosePhase = this in phaseConfig.verbose
runBefore(phaseConfig, context, input)