diff options
author | UIDLYG <uidlygen@yandex.ru> | 2017-05-22 21:20:18 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-05-22 21:20:18 +0300 |
commit | 744d42ed521a15d70ac0ad7eb9ef07bc48727ae4 (patch) | |
tree | 584da107706c4c30299d71dea2ba9431374e73bb /src | |
parent | e391acfbb7fb440f4b5469623f33a4b5d23be369 (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.cs | 5 |
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) { |