浏览代码

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.