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
diff options
context:
space:
mode:
authorAlexis Christoforides <alexis@thenull.net>2016-04-07 19:43:37 +0300
committerAlexis Christoforides <alexis@thenull.net>2016-04-07 19:43:37 +0300
commit1306dad46802b0f3a39cbc43673b190c248a9cc8 (patch)
treeb646b6f8c130cad426ef662ae32d2cdbbaf6bbbc
parented2841a600049a1ebca93e111200fc3277442d19 (diff)
Attempt at fixing backportmono-4.2.0-c6sr2-hotfix37236
-rw-r--r--mono/mini/mini-llvm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mono/mini/mini-llvm.c b/mono/mini/mini-llvm.c
index c5f7fecb42f..85323f7fd13 100644
--- a/mono/mini/mini-llvm.c
+++ b/mono/mini/mini-llvm.c
@@ -5129,13 +5129,14 @@ mono_llvm_emit_method (MonoCompile *cfg)
mono_method_get_param_names (cfg->method, (const char **) names);
for (i = 0; i < sig->param_count; ++i) {
+ LLVMArgInfo *ainfo = &linfo->args [i + sig->hasthis];
char *name;
- int pindex = linfo->pindexes [i] + linfo->args [i + sig->hasthis].ndummy_fpargs;
+ int pindex = ainfo->pindex + ainfo->ndummy_fpargs;
int j;
- for (j = 0; j < linfo->args [i + sig->hasthis].ndummy_fpargs; ++j) {
+ for (j = 0; j < ainfo->ndummy_fpargs; ++j) {
name = g_strdup_printf ("dummy_%d_%d", i, j);
- LLVMSetValueName (LLVMGetParam (method, linfo->pindexes [i] + j), name);
+ LLVMSetValueName (LLVMGetParam (method, ainfo->pindex + j), name);
g_free (name);
}