* generic.cs (Nullable.LiftedBinaryOperator.EmitEquality):
authorRaja R Harinath <harinath@hurrynot.org>
Wed, 31 May 2006 09:36:27 +0000 (09:36 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Wed, 31 May 2006 09:36:27 +0000 (09:36 -0000)
Use bne.un instead of ceq+brfalse.

svn path=/trunk/mcs/; revision=61305

mcs/gmcs/ChangeLog
mcs/gmcs/generic.cs

index 006ba14cb7721351ecd402b3659a5d1d74954c71..47710ff5dc442459450509528a59e9474ba17499 100644 (file)
@@ -1,5 +1,8 @@
 2006-05-31  Raja R Harinath  <rharinath@novell.com>
 
+       * generic.cs (Nullable.LiftedBinaryOperator.EmitEquality):
+       Use bne.un instead of ceq+brfalse.
+
        Fix cs0208-[23].cs
        * typemanager.cs (IsUnmanagedType): Disallow generic types and
        generic parameters.
index a1661e13d6f9bf1838412108b60640fe6c119df9..39a4ea3b6b336371ae59c713292215d08bd6a9f9 100644 (file)
@@ -3182,8 +3182,7 @@ namespace Mono.CSharp {
                                        left_unwrap.EmitCheck (ec);
                                        ig.Emit (OpCodes.Dup);
                                        right_unwrap.EmitCheck (ec);
-                                       ig.Emit (OpCodes.Ceq);
-                                       ig.Emit (OpCodes.Brfalse, dissimilar_label);
+                                       ig.Emit (OpCodes.Bne_Un, dissimilar_label);
 
                                        ig.Emit (OpCodes.Brtrue, both_have_value_label);