mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-21 13:50:05 +02:00
Emit region.end debug calls before a throw.
This commit is contained in:
@@ -641,6 +641,9 @@ void ThrowStatement::toIR(IRState* p)
|
|||||||
|
|
||||||
assert(exp);
|
assert(exp);
|
||||||
DValue* e = exp->toElem(p);
|
DValue* e = exp->toElem(p);
|
||||||
|
|
||||||
|
if (global.params.symdebug) DtoDwarfFuncEnd(gIR->func()->decl);
|
||||||
|
|
||||||
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
|
llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_throw_exception");
|
||||||
//Logger::cout() << "calling: " << *fn << '\n';
|
//Logger::cout() << "calling: " << *fn << '\n';
|
||||||
LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));
|
LLValue* arg = DtoBitCast(e->getRVal(), fn->getFunctionType()->getParamType(0));
|
||||||
|
|||||||
Reference in New Issue
Block a user