From 52329f071e24a6b5d0086909b863b5e109295377 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 23 May 2009 09:02:36 +0200 Subject: [PATCH] Fix regression dstress.nocompile.finally_07. The EnclosingTryFinally handler should not be set when emitting the landing pad's finally code. --- gen/statements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/statements.cpp b/gen/statements.cpp index bbb4e51b..a3868fae 100644 --- a/gen/statements.cpp +++ b/gen/statements.cpp @@ -592,9 +592,9 @@ void TryFinallyStatement::toIR(IRState* p) p->scope() = IRScope(landingpadbb, endbb); assert(finalbody); - gIR->func()->targetScopes.push_back(IRTargetScope(this,new EnclosingTryFinally(this,gIR->func()->landingPad),NULL,NULL)); gIR->func()->landingPadInfo.addFinally(finalbody); gIR->func()->landingPadInfo.push(landingpadbb); + gIR->func()->targetScopes.push_back(IRTargetScope(this,new EnclosingTryFinally(this,gIR->func()->landingPad),NULL,NULL)); gIR->func()->landingPad = gIR->func()->landingPadInfo.get(); //