Procházet zdrojové kódy

Stop accidentally ignoring 'input' instructions' 'next' values in the JIT

jonathanvdc před 8 roky
rodič
revize
b729123ec5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      kernel/modelverse_jit/jit.py

+ 1 - 1
kernel/modelverse_jit/jit.py

@@ -268,8 +268,8 @@ class AnalysisState(object):
         instruction_val, = yield [("RV", [instruction_id])]
         instruction_val = instruction_val["value"]
         if instruction_val in self.instruction_analyzers:
-            gen = self.instruction_analyzers[instruction_val](self, instruction_id)
             try:
+                gen = self.instruction_analyzers[instruction_val](self, instruction_id)
                 inp = None
                 while True:
                     inp = yield gen.send(inp)