changeset 687:0a682c7805d2

Emit region.end debug calls before a throw.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Oct 2008 15:30:58 +0200
parents 363bb6c0cc80
children 9d6d32b969d7
files gen/statements.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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));