mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-04 05:53:13 +01:00
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:
@@ -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();
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user