Merge pull request #1730 from BrzVlad/feature-arm-fast-tls
[mono.git] / mono / mini / method-to-ir.c
index b22032bb9ee209cfc2bf8a3f172956478edc5a79..49be1d0896cae84dee3a9663923656f6f6ffe86a 100644 (file)
@@ -4142,9 +4142,7 @@ handle_alloc (MonoCompile *cfg, MonoClass *klass, gboolean for_box, int context_
                        return NULL;
                }
 
-#ifndef MONO_CROSS_COMPILE
                managed_alloc = mono_gc_get_managed_allocator (klass, for_box, TRUE);
-#endif
 
                if (managed_alloc) {
                        int size = mono_class_instance_size (klass);