Hi,

Look, I'd really like to be able to help you, unfortunately, I have no
idea what is it you think is going wrong. As I already said, please
provide a simple, compilable, reproducible test case, that shows:

1) The output of the test case
2) What you think the test case should output

Thanks!

On Fri, Nov 19, 2010 at 1:04 PM, ayke <[email protected]> wrote:
>
> using Mono.Cecil.Rocks;
>
> body.SimplifyMacros( );
> body.OptimizeMacros( );
>
> ////////////////////////////////////////
>            if (sVar == true)
>                path = "ccc";
>
>            else
>                path = "bbb";
>
> make wrong offsets.
> ////////////////////////////////////////
>
>
> ////////////////////////////////////////
>            if (sVar == true)
>            {
>                path = "ccc";
>            }
>
>            else
>            {
>                path = "bbb";
>            }
>
> works
> ////////////////////////////////////////
>            switch (sVar)
>            {
>                case 1:
>                    path = "aaa";
>                    break;
>                case 2:
>                    path = "aaa";
>                    break;
>                case 4:
>                    path = "aaa";
>                    break;
>                default:
>                    throw new NotSupportedException("Version not supported:
> " + version);
>                    break;
>            }
> with default statement wrong offsets (use {, })
> ////////////////////////////////////////
>                         true ? GetSimpleString ("_CorDllMain")
>                                : GetSimpleString ("_CorExeMain");
>
> wrong offsets
> //////////////////////////////////////
>
>
> --
> View this message in context: 
> http://mono.1490590.n4.nabble.com/Bug-SimplifyMacros-OptimizeMacros-tp3050250p3050250.html
> Sent from the Mono - Cecil mailing list archive at Nabble.com.
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to