smartcaveman / runsharp-google-export

Automatically exported from code.google.com/p/runsharp
MIT License
0 stars 0 forks source link

Operand.EQ(null) doesn't work #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to generate code that compares something to null, but Operand.EQ(null) 
or Operand == null throws NullReferenceException in CmpEnumSpecific. I don't 
see an Operand that can represent null, what should I do?

Workaround: Operand.EQ(g.Local(typeof(object), null))

Original issue reported on code.google.com by qwertie...@gmail.com on 18 Aug 2010 at 6:57

GoogleCodeExporter commented 9 years ago
I can't believe I have missed this (and that it hasn't been reported until now 
:) It's quite a bug!

Original comment by StefanSi...@gmail.com on 20 Aug 2010 at 8:51

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7afdd13e65.

Original comment by StefanSi...@gmail.com on 22 Aug 2010 at 9:39