Browse Source

Fix missing InvalidateFlags() call.

pull/909/merge
Daniel Grunwald 8 years ago
parent
commit
d68b9a9893
  1. 10
      ICSharpCode.Decompiler/IL/Instructions/BlockContainer.cs

10
ICSharpCode.Decompiler/IL/Instructions/BlockContainer.cs

@ -41,10 +41,18 @@ namespace ICSharpCode.Decompiler.IL @@ -41,10 +41,18 @@ namespace ICSharpCode.Decompiler.IL
public StackType ExpectedResultType { get; set; }
int leaveCount;
/// <summary>
/// Gets the number of 'leave' instructions that target this BlockContainer.
/// </summary>
public int LeaveCount { get; internal set; }
public int LeaveCount {
get => leaveCount;
internal set {
leaveCount = value;
InvalidateFlags();
}
}
Block entryPoint;

Loading…
Cancel
Save