Emit region.end debug calls before a throw.

This commit is contained in:
Christian Kamm 2008-10-12 15:30:58 +02:00
parent b413b9aa54
commit 1e825d057a

View file

@ -641,6 +641,9 @@ void ThrowStatement::toIR(IRState* p)
assert(exp);
DValue* e = exp->toElem(p);
if (global.params.symdebug) DtoDwarfFuncEnd(gIR->func()->decl);
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
//Logger::cout() << "calling: " << *fn << '\n';
LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));