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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-06-24 07:43:40 +0300
committerJan Kotas <jkotas@microsoft.com>2016-06-24 07:43:40 +0300
commit9c32c091835a19ed1c387340a1f03737a55a614f (patch)
tree5a9f6b3ee0bc4b6062caa3f6938f122d64c02f62 /src/Native/Runtime/amd64
parent38938df68cc8d070e42e763753ff77b37fc990ea (diff)
Fix wrong register in Unix array allocation helper
Diffstat (limited to 'src/Native/Runtime/amd64')
-rw-r--r--src/Native/Runtime/amd64/AllocFast.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Native/Runtime/amd64/AllocFast.S b/src/Native/Runtime/amd64/AllocFast.S
index a0dedc4cc..443d52b19 100644
--- a/src/Native/Runtime/amd64/AllocFast.S
+++ b/src/Native/Runtime/amd64/AllocFast.S
@@ -142,7 +142,7 @@ NESTED_ENTRY RhpNewArray, _TEXT, NoHandler
// Compute overall allocation size (align(base size + (element size * elements), 8)).
movzx eax, word ptr [rbx + OFFSETOF__EEType__m_usComponentSize]
mul r12
- mov edx, [rdi + OFFSETOF__EEType__m_uBaseSize]
+ mov edx, [rbx + OFFSETOF__EEType__m_uBaseSize]
add rax, rdx
add rax, 7
and rax, -8