[generator] Treat arm64_32 as arm64 when dealing with objc_msgSend behavior.

This commit is contained in:
Rolf Bjarne Kvinge 2019-01-30 08:57:59 +01:00
Родитель 2696403bd6
Коммит 0378b33aa6
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -3863,7 +3863,12 @@ public partial class Generator : IMemberGatherer {
if (is_stret_multi) {
print ("if (Runtime.Arch == Arch.DEVICE) {");
indent++;
print ("if (IntPtr.Size == 8) {");
if (BindingTouch.CurrentPlatform == PlatformName.WatchOS) {
print ("if (global::ObjCRuntime.Runtime.IsARM64CallingConvention) {");
} else {
print ("if (IntPtr.Size == 8) {");
}
indent++;
GenerateInvoke (false, supercall, mi, minfo, selector, args [index64], assign_to_temp, category_type, false, EnumMode.Bit64);
indent--;