Fix regression dstress.nocompile.finally_07. The EnclosingTryFinally handler

should not be set when emitting the landing pad's finally code.
This commit is contained in:
Christian Kamm
2009-05-23 09:02:36 +02:00
parent 2665fc4f3c
commit 52329f071e

View File

@@ -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();
//