Browse Source

Print JIT exceptions when detected for debugging

Yentl Van Tendeloo 7 years ago
parent
commit
1a35c8e7e9
1 changed files with 2 additions and 1 deletions
  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.