explicit stack instruction in NewILToCodeModel


Here's a case of an explicit stack instruction that NewILToCodeModel generates.
Short repro:
  • Open bin\Debug\cci-dup-case.txt and look at this line:
            data.Width = (dup.Width >> 1);
  • The C# code that generates this is in Program.cs
    It only generate that "dup" if I use the >>= operator. If I say "data.Width = data.Width >> 1", then it doesn't generate the dup.

file attachments

Closed Jan 5, 2013 at 1:04 AM by hermanv


hermanv wrote Mar 14, 2012 at 12:40 AM

At revision: 68425