summaryrefslogtreecommitdiff
path: root/packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch
blob: 7bc7348d9de7f21cc820716cbebbdea3cdc72701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 59835bafae9faf37d770f7ab82830f7e1f2256f9 Mon Sep 17 00:00:00 2001
From: Ruben Ayrapetyan <r.ayrapetyan@samsung.com>
Date: Tue, 27 Jun 2017 19:22:07 +0300
Subject: [PATCH 14/32] Fix JIT_NewArr1 8-byte alignment for ELEMENT_TYPE_R8 on
 x86.

---
 src/vm/jithelpers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vm/jithelpers.cpp b/src/vm/jithelpers.cpp
index 0b51339..731b490 100644
--- a/src/vm/jithelpers.cpp
+++ b/src/vm/jithelpers.cpp
@@ -3187,7 +3187,7 @@ HCIMPL2(Object*, JIT_NewArr1, CORINFO_CLASS_HANDLE arrayMT, INT_PTR size)
     // is this a primitive type?
     //
 
-    CorElementType elemType = pArrayMT->GetInternalCorElementType();
+    CorElementType elemType = pArrayMT->GetArrayElementType();
 
     if (CorTypeInfo::IsPrimitiveType(elemType)
 #ifdef FEATURE_64BIT_ALIGNMENT
-- 
2.7.4