@@ -292,7 +292,7 @@ def add_attr(self, lvalue: NameExpr, stmt: AssignmentStmt) -> None:
292292 return
293293 typ = self .builder .load_native_type_object (self .cdef .fullname )
294294 value = self .builder .accept (stmt .rvalue )
295- self .builder .call_c (
295+ self .builder .primitive_op (
296296 py_setattr_op , [typ , self .builder .load_str (lvalue .name ), value ], stmt .line
297297 )
298298 if self .builder .non_function_scope () and stmt .is_final_def :
@@ -452,7 +452,7 @@ def allocate_class(builder: IRBuilder, cdef: ClassDef) -> Value:
452452 )
453453 )
454454 # Populate a '__mypyc_attrs__' field containing the list of attrs
455- builder .call_c (
455+ builder .primitive_op (
456456 py_setattr_op ,
457457 [
458458 tp ,
@@ -483,7 +483,7 @@ def make_generic_base_class(
483483 for tv , type_param in zip (tvs , type_args ):
484484 if type_param .kind == TYPE_VAR_TUPLE_KIND :
485485 # Evaluate *Ts for a TypeVarTuple
486- it = builder .call_c (iter_op , [tv ], line )
486+ it = builder .primitive_op (iter_op , [tv ], line )
487487 tv = builder .call_c (next_op , [it ], line )
488488 args .append (tv )
489489
@@ -603,7 +603,7 @@ def setup_non_ext_dict(
603603 This class dictionary is passed to the metaclass constructor.
604604 """
605605 # Check if the metaclass defines a __prepare__ method, and if so, call it.
606- has_prepare = builder .call_c (
606+ has_prepare = builder .primitive_op (
607607 py_hasattr_op , [metaclass , builder .load_str ("__prepare__" )], cdef .line
608608 )
609609
0 commit comments