Reverted this:
authorMartin Baulig <martin@novell.com>
Wed, 1 Sep 2004 06:26:54 +0000 (06:26 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 1 Sep 2004 06:26:54 +0000 (06:26 -0000)
2004-08-02  Martin Baulig  <martin@ximian.com>

(New.DoEmit): Also use the `Newobj' opcode for generic instances.

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

mcs/gmcs/ChangeLog
mcs/gmcs/expression.cs

index 2b8c1d89104d9e8d7a24f01f409ad4684ed59629..50b9cba61397ed3a634a31a352346218b6fcb2ae 100755 (executable)
 
        * expression.cs (Invocation.EmitCall): If we're invoking a method
        on a type parameter, use the new `Constrained' prefix opcode.
-       (New.DoEmit): Also use the `Newobj' opcode for generic instances.
 
 2004-08-02  Martin Baulig  <martin@ximian.com>
 
index d469897eda570f10d1762216413f4160a7b66dd8..9fba3fc125fba72b172fb2325e5e99b381dd67ac 100755 (executable)
@@ -5987,8 +5987,7 @@ namespace Mono.CSharp {
                //
                bool DoEmit (EmitContext ec, bool need_value_on_stack)
                {
-                       bool is_value_type = TypeManager.IsValueType (type) &&
-                               !type.IsGenericInstance;
+                       bool is_value_type = TypeManager.IsValueType (type);
                        ILGenerator ig = ec.ig;
 
                        if (is_value_type){