This project is read-only.
1

Closed

explicit stack instruction in NewILToCodeModel

description

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 2:04 AM by hermanv

comments

hermanv wrote Mar 14, 2012 at 1:40 AM

At revision: 68425