projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch to compiler-tester
[mono.git]
/
mcs
/
mbas
/
statement.cs
diff --git
a/mcs/mbas/statement.cs
b/mcs/mbas/statement.cs
index 0f68fa2934cf55d8841555bbd9c8d517bbf39a81..889bcc852fab7aff74ae93be46291cefe7063fec 100644
(file)
--- a/
mcs/mbas/statement.cs
+++ b/
mcs/mbas/statement.cs
@@
-920,7
+920,10
@@
namespace Mono.MonoBASIC {
protected override bool DoEmit (EmitContext ec)
{
Label l = label.LabelTarget (ec);
- ec.ig.Emit (OpCodes.Br, l);
+ if (ec.InTry || ec.InCatch)
+ ec.ig.Emit (OpCodes.Leave, l);
+ else
+ ec.ig.Emit (OpCodes.Br, l);
return false;
}