From 325aaac1c21fdb66f83237fd10fde66390ad4e95 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Wed, 26 Apr 2017 15:24:44 +0900 Subject: [PATCH] [ARM/Linux] Honor unaligned prefix for ldobj instruction --- src/jit/importer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp index 9d27277d8600..c400318a9430 100644 --- a/src/jit/importer.cpp +++ b/src/jit/importer.cpp @@ -14806,6 +14806,11 @@ void Compiler::impImportBlockCode(BasicBlock* block) // Could point anywhere, example a boxed class static int op1->gtFlags |= GTF_IND_TGTANYWHERE | GTF_GLOB_REF; assertImp(varTypeIsArithmetic(op1->gtType)); + + if (prefixFlags & PREFIX_UNALIGNED) + { + op1->gtFlags |= GTF_IND_UNALIGNED; + } } else {