changeset 1414:303e6422f785

Fix regression dstress.nocompile.finally_07. The EnclosingTryFinally handler should not be set when emitting the landing pad's finally code.
author Christian Kamm <kamm incasoftware de>
date Sat, 23 May 2009 09:02:36 +0200
parents f9285cf14c0d
children bac3931b3de3
files gen/statements.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/statements.cpp	Sat May 23 00:26:38 2009 +0200
+++ b/gen/statements.cpp	Sat May 23 09:02:36 2009 +0200
@@ -592,9 +592,9 @@
     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();
 
     //