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
path: root/src
diff options
context:
space:
mode:
authorUIDLYG <uidlygen@yandex.ru>2017-05-22 21:20:18 +0300
committerJan Kotas <jkotas@microsoft.com>2017-05-22 21:20:18 +0300
commit744d42ed521a15d70ac0ad7eb9ef07bc48727ae4 (patch)
tree584da107706c4c30299d71dea2ba9431374e73bb /src
parente391acfbb7fb440f4b5469623f33a4b5d23be369 (diff)
Fix getClassAlignmentRequirement for arm 32-bit architectures (#3671)
Signed-off-by: UIDL YGEN <uidlygen@yandex.ru>
Diffstat (limited to 'src')
-rw-r--r--src/JitInterface/src/CorInfoImpl.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/JitInterface/src/CorInfoImpl.cs b/src/JitInterface/src/CorInfoImpl.cs
index 4bef5a480..e5296ddce 100644
--- a/src/JitInterface/src/CorInfoImpl.cs
+++ b/src/JitInterface/src/CorInfoImpl.cs
@@ -1133,7 +1133,10 @@ namespace Internal.JitInterface
}
private uint getClassAlignmentRequirement(CORINFO_CLASS_STRUCT_* cls, bool fDoubleAlignHint)
- { throw new NotImplementedException("getClassAlignmentRequirement"); }
+ {
+ DefType type = (DefType)HandleToObject(cls);
+ return (uint)type.InstanceByteAlignment.AsInt;
+ }
private int GatherClassGCLayout(TypeDesc type, byte* gcPtrs)
{