summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-05-05 15:10:36 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-05-23 11:04:34 -0700
commit80ad0e751f4c9aa13a581b61b348c34ede7f3956 (patch)
tree6f5e5463b61f6661bd38d2829e11c43c3e924180 /yjit
parent37ccf91bfb73a225cc60413645788ea55e5e852a (diff)
Remove unnecessary module flag, add module assertions to other module flags
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5930
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index e64f269cfe..3591e05b3d 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -5035,7 +5035,7 @@ fn gen_invokesuper(
// vm_search_normal_superclass
let rbasic_ptr: *const RBasic = current_defined_class.as_ptr();
if current_defined_class.builtin_type() == RUBY_T_ICLASS
- && unsafe { FL_TEST_RAW((*rbasic_ptr).klass, VALUE(RMODULE_IS_REFINEMENT)) != VALUE(0) }
+ && unsafe { RB_TYPE_P((*rbasic_ptr).klass, RUBY_T_MODULE) && FL_TEST_RAW((*rbasic_ptr).klass, VALUE(RMODULE_IS_REFINEMENT)) != VALUE(0) }
{
return CantCompile;
}