Commit e5bb961d authored by Marius Wachtler's avatar Marius Wachtler

Merge commit 'b00e7a93' into refcounting

Conflicts:
	src/codegen/irgen/irgenerator.cpp
parents 0fb19bb5 b00e7a93
......@@ -3074,6 +3074,7 @@ public:
irstate->getRefcounts()->refConsumed(exc_type, call_inst);
irstate->getRefcounts()->refConsumed(exc_value, call_inst);
irstate->getRefcounts()->refConsumed(exc_traceback, call_inst);
builder->CreateCall(g.funcs.deinitFrame, irstate->getFrameInfoVar());
builder->CreateRet(getNullPtr(g.llvm_value_type_ptr));
} else {
//auto call_inst = emitter.createCall3(UnwindInfo(unw_info.current_stmt, NO_CXX_INTERCEPTION),
......
# this test caused crashes because of a missing deinitFrame call in the LLVM tier when compiling funcs in CAPI mode
def next(x):
1/x
def foo(x):
try:
next(x)
except Exception as e:
print "exc", e
foo(1)
foo(0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment