mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Emit region.end debug calls before a throw.
This commit is contained in:
parent
b413b9aa54
commit
1e825d057a
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue