Skip to content

Commit

Permalink
Fix reporting GC refs as byrefs for crossgen2 promoted structs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Apr 4, 2022
1 parent 9cb9a97 commit 17a07ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/lclvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ bool Compiler::StructPromotionHelper::CanConstructAndPromoteField(lvaStructPromo
fldInfo.fldOffset = 0;
fldInfo.fldOrdinal = 0;
fldInfo.fldSize = TARGET_POINTER_SIZE;
fldInfo.fldType = TYP_BYREF;
fldInfo.fldType = TYP_REF;

structPromotionInfo->canPromote = true;
return true;
Expand Down

0 comments on commit 17a07ea

Please sign in to comment.