Devirtualization: more readable debug output

This commit is contained in:
Igor Chevdar
2018-04-06 09:54:51 +03:00
parent b54392c9de
commit ff2a81b5cf
@@ -179,7 +179,7 @@ internal object Devirtualization {
private fun DataFlowIR.Type.resolved(): DataFlowIR.Type.Declared {
if (this is DataFlowIR.Type.Declared) return this
val hash = (this as DataFlowIR.Type.External).hash
return externalModulesDFG.publicTypes[hash] ?: error("Unable to resolve exported type $hash")
return externalModulesDFG.publicTypes[hash] ?: error("Unable to resolve exported type $this")
}
private fun DataFlowIR.FunctionSymbol.resolved(): DataFlowIR.FunctionSymbol {