Set resume point correctly for await inside nested try
[mono.git] / mcs / mcs / iterators.cs
index 9334ec1e6b242da394e30aef0a76c1d959504d6f..dcbf10edf722bb4a6bf635406f9e62d75466939f 100644 (file)
@@ -60,7 +60,7 @@ namespace Mono.CSharp
                        machine_initializer = bc.CurrentAnonymousMethod as T;
 
                        if (!bc.CurrentBranching.CurrentUsageVector.IsUnreachable)
-                               unwind_protect = bc.CurrentBranching.AddResumePoint (this, out resume_pc);
+                               unwind_protect = bc.CurrentBranching.AddResumePoint (this, this, out resume_pc);
 
                        return true;
                }