Modified: MacRuby/trunk/vm.cpp (5270 => 5271)
--- MacRuby/trunk/vm.cpp 2011-03-10 02:00:13 UTC (rev 5270)
+++ MacRuby/trunk/vm.cpp 2011-03-10 02:00:48 UTC (rev 5271)
@@ -865,9 +865,11 @@
GlobalVariable *gvar = NULL;
if (iter == redefined_ops_gvars.end()) {
if (create) {
+ // TODO: if OPTZ_LEVEL is 3, force global variables to always be
+ // true and read-only.
gvar = new GlobalVariable(*RoxorCompiler::module,
Type::getInt8Ty(context),
- ruby_aot_compile ? true : false,
+ false,
GlobalValue::InternalLinkage,
ConstantInt::get(Type::getInt8Ty(context), 0),
"");