Forced ThrowTypeCastException to be exported

It is used inside codegen after DCE phase
This commit is contained in:
Igor Chevdar
2020-01-31 12:33:13 +03:00
parent 071a35c50f
commit 5c9c82a894
@@ -29,6 +29,7 @@ fun ThrowClassCastException(instance: Any, typeInfo: NativePtr): Nothing {
throw ClassCastException("${instance::class.qualifiedName} cannot be cast to ${clazz.qualifiedName}")
}
@ExportForCppRuntime
fun ThrowTypeCastException(): Nothing {
throw TypeCastException()
}