Преглед на файлове

Print JIT exceptions when detected for debugging

Yentl Van Tendeloo преди 7 години
родител
ревизия
1a35c8e7e9
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      kernel/modelverse_jit/jit.py

+ 2 - 1
kernel/modelverse_jit/jit.py

@@ -799,7 +799,8 @@ def compile_function_body_fast(jit, function_name, body_id, _):
     # Lower the CFG to tree IR.
     try:
         constructed_body = cfg_to_tree.lower_flow_graph(entry_point, jit)
-    except:
+    except Exception as e:
+        print("Exception in JIT: " + str(e))
         raise JitCompilationFailedException("UNKNOWN...")
 
     # Optimize the tree that was generated.