Skip to content

Commit

Permalink
cmpNodeCnst should not ignore comments
Browse files Browse the repository at this point in the history
No test added because currently only nkSym
NimNode literals are created.
  • Loading branch information
Clyybber committed Mar 12, 2024
1 parent eb0c14e commit 32a8dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/vm/vmgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,8 @@ func cmpNodeCnst(a, b: PNode): bool {.inline.} =
relaxKindCheck = false,
symCheck = a.sym == b.sym,
floatCheck = cmpFloatRep(a.floatVal, b.floatVal),
commentCheck = true, # Ignore comments
commentCheck = true,
# comment equality shouldn't be ignored here (no test because currently only nkSym NimNode literals are created)
typeCheck = a.typ == b.typ
)

Expand Down

0 comments on commit 32a8dbc

Please sign in to comment.