Change the way how using declarators statements are generated to handle await in...
[mono.git] / mcs / mcs / parameter.cs
index 6f9d38705860c905aa10b884f4eabf14ff2206a9..20fbfb1f2deb9ceb0c93f8d248a6cd21d98a63bf 100644 (file)
@@ -613,7 +613,7 @@ namespace Mono.CSharp {
 
                public void Emit (EmitContext ec)
                {
-                       ec.EmitArgumentLoad (idx, parameter_type);
+                       ec.EmitArgumentLoad (idx);
                }
 
                public void EmitAssign (EmitContext ec)
@@ -624,9 +624,9 @@ namespace Mono.CSharp {
                public void EmitAddressOf (EmitContext ec)
                {
                        if ((ModFlags & Modifier.ISBYREF) != 0) {
-                               ec.EmitArgumentLoad (idx, parameter_type);
+                               ec.EmitArgumentLoad (idx);
                        } else {
-                               ec.EmitArgumentAddress (idx, parameter_type);
+                               ec.EmitArgumentAddress (idx);
                        }
                }