A fix for bug #513400
* nullable.cs (EmitEquality): Operands emit could be simplified for
built-in types when we now emit user operators differently.
svn path=/trunk/mcs/; revision=136314
+2009-06-17 Marek Safar <marek.safar@gmail.com>
+
+ A fix for bug #513400
+ * nullable.cs (EmitEquality): Operands emit could be simplified for
+ built-in types when we now emit user operators differently.
+
2009-06-16 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Report inaccessible delegate methods correctly.
user_operator.Emit (ec);
ig.Emit (Oper == Operator.Equality ? OpCodes.Brfalse_S : OpCodes.Brtrue_S, dissimilar_label);
} else {
- if (left_unwrap != null && !(left is UserCast))
- left_unwrap.Emit (ec);
- else
- left.Emit (ec);
-
- if (right_unwrap != null && !(right is UserCast))
- right_unwrap.Emit (ec);
- else
- right.Emit (ec);
+ left.Emit (ec);
+ right.Emit (ec);
ig.Emit (OpCodes.Bne_Un_S, dissimilar_label);
}