Forced ThrowTypeCastException to be exported
It is used inside codegen after DCE phase
This commit is contained in:
@@ -29,6 +29,7 @@ fun ThrowClassCastException(instance: Any, typeInfo: NativePtr): Nothing {
|
|||||||
throw ClassCastException("${instance::class.qualifiedName} cannot be cast to ${clazz.qualifiedName}")
|
throw ClassCastException("${instance::class.qualifiedName} cannot be cast to ${clazz.qualifiedName}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ExportForCppRuntime
|
||||||
fun ThrowTypeCastException(): Nothing {
|
fun ThrowTypeCastException(): Nothing {
|
||||||
throw TypeCastException()
|
throw TypeCastException()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user