summaryrefslogtreecommitdiff
path: root/packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch')
-rw-r--r--packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch b/packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch
new file mode 100644
index 0000000..7bc7348
--- /dev/null
+++ b/packaging/0014-Fix-JIT_NewArr1-8-byte-alignment-for-ELEMENT_TYPE_R8.patch
@@ -0,0 +1,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
+