Browse Source

Fix missing InvalidateFlags() call.

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

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

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

Loading…
Cancel
Save