Skip to content

Commit

Permalink
Mark MemberwiseClone as intrinsic (#557)
Browse files Browse the repository at this point in the history
RyuJIT can do an extra optimization here.
  • Loading branch information
MichalStrehovsky committed Jan 13, 2021
1 parent 129e751 commit 2ca4c5a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ internal EETypePtr EETypePtr
}
}

[Intrinsic]
protected object MemberwiseClone()
{
return RuntimeImports.RhMemberwiseClone(this);
Expand Down

0 comments on commit 2ca4c5a

Please sign in to comment.