[Mono-bugs] [Bug 74934][Blo] Changed - invalid IL code at ...
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 13 May 2005 07:47:44 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74934
--- shadow/74934 2005-05-13 07:11:57.000000000 -0400
+++ shadow/74934.tmp.15400 2005-05-13 07:47:44.000000000 -0400
@@ -54,6 +54,20 @@
------- Additional Comments From michael@ximian.com 2005-05-13 07:11 -------
Created an attachment (id=15139)
monodis output for working assembly
+
+------- Additional Comments From lupus@ximian.com 2005-05-13 07:47 -------
+The small test case is:
+class T {
+ static unsafe int Main () {
+ int *a = null;
+ int **b = &a;
+ if (*b == null)
+ return 0;
+ return 1;
+ }
+}
+mcs uses ldnull (which is an objref) instead of a NULL pointer.
+It should use ldc.i4.0/conv.u, instead.