Skip to content

Commit

Permalink
Fix NRE for inlined thread statics
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Aug 5, 2024
1 parent 79ce959 commit 3cd91fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private ISymbolNode GetGCStaticEETypeNode(NodeFactory factory)
_inlined.GetOffsets(),
_inlined.GetSize(),
factory.Target.PointerSize);
bool requiresAlign8 = _type.ThreadGcStaticFieldAlignment.AsInt > factory.Target.PointerSize;
bool requiresAlign8 = _type is not null && _type.ThreadGcStaticFieldAlignment.AsInt > factory.Target.PointerSize;

return factory.GCStaticEEType(map, requiresAlign8);
}
Expand Down

0 comments on commit 3cd91fb

Please sign in to comment.