Revision
2879
Author
vincent.isambart@gmail.com
Date
2009-10-21 16:17:31 -0700 (Wed, 21 Oct 2009)

Log Message

delenda does not work on Leopard

Modified Paths

Diff

Modified: MacRuby/trunk/vm.cpp (2878 => 2879)


--- MacRuby/trunk/vm.cpp	2009-10-21 22:53:56 UTC (rev 2878)
+++ MacRuby/trunk/vm.cpp	2009-10-21 23:17:31 UTC (rev 2879)
@@ -435,6 +435,7 @@
 {
     assert(func->use_empty());
 
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
     // Remove from cache.
     std::map<Function *, IMP>::iterator iter = JITcache.find(func);
     if (iter != JITcache.end()) {
@@ -461,6 +462,7 @@
 
     // Delete IR.
     func->eraseFromParent();
+#endif
 }
 
 bool