Modified: MacRuby/trunk/vm.cpp (3148 => 3149)
--- MacRuby/trunk/vm.cpp 2009-12-22 19:51:05 UTC (rev 3148)
+++ MacRuby/trunk/vm.cpp 2009-12-22 22:42:22 UTC (rev 3149)
@@ -735,11 +735,17 @@
return get_sizeof(RoxorCompiler::shared->convert_type(type));
}
+#ifdef __LP64__
+# define LARGE_STRUCT_SIZE 128
+#else
+# define LARGE_STRUCT_SIZE 64
+#endif /* !__LP64__ */
+
bool
RoxorCore::is_large_struct_type(const Type *type)
{
return type->getTypeID() == Type::StructTyID
- && ee->getTargetData()->getTypeSizeInBits(type) > 128;
+ && ee->getTargetData()->getTypeSizeInBits(type) > LARGE_STRUCT_SIZE;
}
inline GlobalVariable *