Closed DenJur closed 6 years ago
Body = new CilBody();
Wouldn't this be easier?
Just in case there are other stuff that needs to be cleared?
At least I clear body and create new one like this, haven't had problems with this method.
I will have a look into both methods
I think new CilBody will also clear MaxStack which breaks KeepMaxStack. Does it not?
Yes it does.
I implemented both versions. See commit 1436d418e49cf527c3b81a0667e99cb327110eba
Fix exception handlers not being cleared when method body is.