aot: use a global string instead of a const pointer
--- MacRuby/trunk/compiler.cpp 2010-06-30 21:03:49 UTC (rev 4312)
+++ MacRuby/trunk/compiler.cpp 2010-07-01 00:30:20 UTC (rev 4313)
@@ -5111,7 +5111,7 @@
{
Value *args[] = {
val,
- compile_const_pointer(sel_registerName(type)),
+ compile_const_global_string(type),
new BitCastInst(slot, PtrPtrTy, "", bb)
};
return compile_protected_call(getPointerPtrFunc, args, args + 3);