Skip to content

Commit

Permalink
Equality codegen for foreignptr. (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Jan 27, 2024
1 parent a312f16 commit 444cf93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Compiler/Backend/ClosExp.sml
Original file line number Diff line number Diff line change
Expand Up @@ -2252,6 +2252,9 @@ struct
else eq_prim "__equal_word64ub")
else if TyName.eq(tn,TyName.tyName_STRING) then
eq_prim "equalStringML"
else if TyName.eq(tn,TyName.tyName_FOREIGNPTR) then
(if BI.tag_values() then eq_prim "__equal_word64b"
else eq_prim "__equal_word64ub")
else if TyName.eq(tn,TyName.tyName_VECTOR) then
die "`=' on vectors! EliminateEq should have dealt with this"
else eq_prim "equalPolyML"
Expand Down

0 comments on commit 444cf93

Please sign in to comment.