提交 2657475e 编写于 作者: L Lukasz

[mcs] Only emit finally_host for TryFinally statements.

上级 7d60c0c3
......@@ -3994,7 +3994,12 @@ namespace Mono.CSharp {
iter = ec.CurrentIterator;
if (iter != null && !ec.IsInProbingMode)
finally_host = iter.CreateFinallyHost (this);
{
TryFinally tryFinally = this as TryFinally;
if(tryFinally != null)
finally_host = iter.CreateFinallyHost (this);
}
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册