diff options
author | Lucas Trzesniewski <lucas.trzesniewski@gmail.com> | 2021-05-18 01:13:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 01:13:42 +0300 |
commit | a72c1b1e11762d940f95ffb662dbdf7f0de92a28 (patch) | |
tree | 0f13fae774fb94b0ae23ca52140ccdf3e2ecd28d /Mono.Cecil.Cil | |
parent | 634a37d3f2be7b8c72a612fce7b4907a12533d4c (diff) |
Do not reset the stack size after a break instruction (#755)
"break" is not an unconditional jump instruction, it should not impact the stack size.
Diffstat (limited to 'Mono.Cecil.Cil')
-rw-r--r-- | Mono.Cecil.Cil/CodeWriter.cs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Mono.Cecil.Cil/CodeWriter.cs b/Mono.Cecil.Cil/CodeWriter.cs index 88942e1..501710e 100644 --- a/Mono.Cecil.Cil/CodeWriter.cs +++ b/Mono.Cecil.Cil/CodeWriter.cs @@ -424,7 +424,6 @@ namespace Mono.Cecil.Cil { { switch (instruction.opcode.FlowControl) { case FlowControl.Branch: - case FlowControl.Break: case FlowControl.Throw: case FlowControl.Return: stack_size = 0; |