Skip to content

Commit

Permalink
do not copy structs on compare
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed Jun 26, 2024
1 parent 3bd447f commit 295844f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compiler/AbstractIL/ilread.fs
Original file line number Diff line number Diff line change
Expand Up @@ -858,10 +858,10 @@ let hsCompare (TaggedIndex(t1: HasSemanticsTag, idx1: int)) (TaggedIndex(t2: Has
elif idx1 > idx2 then 1
else compare t1.Tag t2.Tag

let hcaCompare (TaggedIndex(t1: HasCustomAttributeTag, idx1: int)) (TaggedIndex(t2: HasCustomAttributeTag, idx2)) =
if idx1 < idx2 then -1
elif idx1 > idx2 then 1
else compare t1.Tag t2.Tag
let inline hcaCompare (t1: TaggedIndex<HasCustomAttributeTag>) (t2: TaggedIndex<HasCustomAttributeTag>) =
if t1.index < t2.index then -1
elif t1.index > t2.index then 1
else compare t1.tag t2.tag

let mfCompare (TaggedIndex(t1: MemberForwardedTag, idx1: int)) (TaggedIndex(t2: MemberForwardedTag, idx2)) =
if idx1 < idx2 then -1
Expand Down

0 comments on commit 295844f

Please sign in to comment.