Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/ilasm
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2015-12-07 05:37:52 +0300
committerRodrigo Kumpera <kumpera@gmail.com>2016-03-02 18:32:09 +0300
commit595ff89bea1535c7a8298f766aa61186da9816e3 (patch)
treee1bc07c60e882ace4ed56800e0b945b7075d3aa1 /mcs/ilasm
parentcdd1cf1dcc5532361c42c2555932cbe644521d89 (diff)
[ilasm] When generating method signatures for method-defs, make sure they contain the full call conv. Fixes b35784.
When generating varargs signatures for method defs, ilasm would discard the rest of the call conv. Things like instance or explicit this would be discarded.
Diffstat (limited to 'mcs/ilasm')
-rw-r--r--mcs/ilasm/codegen/MethodDef.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/ilasm/codegen/MethodDef.cs b/mcs/ilasm/codegen/MethodDef.cs
index 7c5e5fc8a9f..4e9d31c0628 100644
--- a/mcs/ilasm/codegen/MethodDef.cs
+++ b/mcs/ilasm/codegen/MethodDef.cs
@@ -455,6 +455,7 @@ namespace Mono.ILASM {
if (methref == null) {
methref = methoddef.MakeVarArgSignature (opt);
+ methref.AddCallConv (call_conv);
vararg_sig_table [full_signature] = methref;
}