summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-12-09 20:53:02 -0800
committerJeremy Evans <code@jeremyevans.net>2020-12-10 10:16:05 -0800
commit01b7d5acc702df22d306ae95f1a9c3096e63e624 (patch)
treeec42028540f04653d1022a1ed83d509df77bd723 /vm_insnhelper.c
parent4a559aa22537bbd2f17c7babb1aca48d1a3a4647 (diff)
Remove the uninitialized instance variable verbose mode warning
This speeds up all instance variable access, even when not in verbose mode. Uninitialized instance variable warnings were rarely helpful, and resulted in slower code if you wanted to avoid warnings when run in verbose mode. Implements [Feature #17055]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3879
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index e6282ca668..9205273199 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1179,9 +1179,6 @@ vm_getivar(VALUE obj, ID id, const rb_iseq_t *iseq, IVC ic, const struct rb_call
return val;
}
else {
- if (!is_attr && RTEST(ruby_verbose)) {
- rb_warning("instance variable %"PRIsVALUE" not initialized", QUOTE_ID(id));
- }
return Qnil;
}
}