SimplifyMacros and OptimizeMacros are in Cecil.Rocks. What if you try
with them ?

On Thursday, November 25, 2010, Simon Cropp <[email protected]> wrote:
> I am getting a "Branch out of the method." error
>
> Spikes.NotifyPropertyWeavingSpike.exe : 
> Spikes.NotifyPropertyWeavingSpike.TimerViewModel::set_TimeRemaining][offset 
> 0x00000019] Branch out of the method.
>
> Which seems to be this 
> http://teddhansen.wordpress.com/2010/03/20/bug-in-mono-cecil/ but the 
> Optimise and Simplfy methods dont exist in the current cecil
>
> I have attached the offending assembly
>
> the line is set_TimeRemaining
>     L_0019: brtrue.s L_ffffff9b
>
>
> but the method does not  have that many lines
>
> that line is inserted using
> cilWorker.InsertBefore(first, cilWorker.Create(OpCodes.Brtrue_S, last));
>
> where "last" is the last line in the method
>
> Any ideas?
>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to