Fix interop support of struct containing simd (#3602)

This commit is contained in:
Vladimir Ivanov
2019-11-22 14:38:05 +03:00
committed by GitHub
parent be6722d44a
commit f1b4a9f150
6 changed files with 60 additions and 3 deletions
@@ -66,6 +66,7 @@ private fun tryRenderVar(type: Type, name: String): String? = when (type) {
CharType, is BoolType -> "char $name"
is IntegerType -> "${type.spelling} $name"
is FloatingType -> "${type.spelling} $name"
is VectorType -> "${type.spelling} $name"
is RecordType -> "${tryRenderStructOrUnion(type.decl.def!!)} $name"
is EnumType -> tryRenderVar(type.def.baseType, name)
is PointerType -> "void* $name"