Commits

Alex Gaynor committed cc89614

restore these checks which got deleted

Comments (0)

Files changed (1)

rpython/rlib/jit.py

             self.autoreds = True
             self.reds = []
             self.numreds = None # see warmspot.autodetect_jit_markers_redvars
-            assert confirm_enter_jit is None, (
-                "reds='auto' is not compatible with confirm_enter_jit")
+            for hook in [
+                get_jitcell_at, set_jitcell_at, get_printable_location,
+                confirm_enter_jit
+            ]:
+                assert hook is None, "reds='auto' is not compatible with JitDriver hooks"
         else:
             if reds is not None:
                 self.reds = reds