Hey, On 3/26/10, Tedd Hansen <t...@konge.net> wrote: > Could use some input on > http://teddhansen.wordpress.com/2010/03/20/bug-in-mono-cecil/ > Is it a bug? If not, how do I ensure correct pos?
I added a comment on the blog when this was posted, but somehow it got removed. It's not a bug, you're injecting too much code into a short form branch. If you don't want to deal with it manually, call: method_body.Simplify () before instrumenting. That will transform all short forms to normal forms. And when're you're done you can call: method_body.Optimize () to turn them back to short forms if possible. Here, “bug” is gone. -- Jb Evain <j...@nurv.fr> -- -- mono-cecil To unsubscribe from this group, send email to mono-cecil+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.