|
|
|
@ -34,12 +34,12 @@ namespace ICSharpCode.Decompiler.IL |
|
|
|
{ |
|
|
|
{ |
|
|
|
BlockContainer targetContainer; |
|
|
|
BlockContainer targetContainer; |
|
|
|
|
|
|
|
|
|
|
|
public Leave(BlockContainer targetContainer) : base(OpCode.Leave) |
|
|
|
public Leave(BlockContainer targetContainer, ILInstruction value = null) : base(OpCode.Leave) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Note: ILReader will create Leave instructions with targetContainer==null to represent 'endfinally',
|
|
|
|
// Note: ILReader will create Leave instructions with targetContainer==null to represent 'endfinally',
|
|
|
|
// the targetContainer will then be filled in by BlockBuilder
|
|
|
|
// the targetContainer will then be filled in by BlockBuilder
|
|
|
|
this.targetContainer = targetContainer; |
|
|
|
this.targetContainer = targetContainer; |
|
|
|
this.Value = new Nop(); |
|
|
|
this.Value = value ?? new Nop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override InstructionFlags ComputeFlags() |
|
|
|
protected override InstructionFlags ComputeFlags() |
|
|
|
|