# HG changeset patch # User Christian Kamm # Date 1223818258 -7200 # Node ID 0a682c7805d29cdf89576ff3a5293fca3494ecd4 # Parent 363bb6c0cc807a9bf08b90e24eafd947ebab03b9 Emit region.end debug calls before a throw. diff -r 363bb6c0cc80 -r 0a682c7805d2 gen/statements.cpp --- a/gen/statements.cpp Sun Oct 12 14:38:55 2008 +0200 +++ b/gen/statements.cpp Sun Oct 12 15:30:58 2008 +0200 @@ -641,6 +641,9 @@ 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));