JVM IR: minor, add exception message to IrFrameMap.typeOf

This commit is contained in:
Alexander Udalov
2019-12-13 19:24:52 +03:00
parent 0b7c11c96e
commit 561cde9d06
@@ -51,7 +51,8 @@ class IrFrameMap : FrameMapBase<IrSymbol>() {
return super.leave(descriptor)
}
fun typeOf(descriptor: IrSymbol): Type = typeMap.getValue(descriptor)
fun typeOf(symbol: IrSymbol): Type =
typeMap[symbol] ?: error("No mapping for symbol: ${symbol.owner.render()}")
}
internal val IrFunction.isStatic