diff options
author | Andi McClure <andi.mcclure@xamarin.com> | 2016-10-28 18:50:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 18:50:41 +0300 |
commit | 20d3235dae9f07738b90a7cd137ee49c4d72f728 (patch) | |
tree | ccf2cd72ef99f65b31d79faa2f9eb68dfe93c392 | |
parent | bffc44c04d6c1ec65842fa6f9cde1426b0a86aac (diff) | |
parent | a6104d5ab5f2aaf26d34ed3ab20fd2000f89b851 (diff) |
Merge pull request #3833 from BrzVlad/fix-45379-c8
[C8][sgen] Fix 45379
-rw-r--r-- | mono/mini/method-to-ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/mini/method-to-ir.c b/mono/mini/method-to-ir.c index a907decc82e..c997ed5af31 100644 --- a/mono/mini/method-to-ir.c +++ b/mono/mini/method-to-ir.c @@ -5678,7 +5678,7 @@ emit_array_generic_access (MonoCompile *cfg, MonoMethodSignature *fsig, MonoInst if (is_set) { EMIT_NEW_LOAD_MEMBASE_TYPE (cfg, load, &eklass->byval_arg, args [2]->dreg, 0); EMIT_NEW_STORE_MEMBASE_TYPE (cfg, store, &eklass->byval_arg, addr->dreg, 0, load->dreg); - if (mini_type_is_reference (fsig->params [2])) + if (mini_type_is_reference (&eklass->byval_arg)) emit_write_barrier (cfg, addr, load); } else { EMIT_NEW_LOAD_MEMBASE_TYPE (cfg, load, &eklass->byval_arg, addr->dreg, 0); |