Skip to content

Commit

Permalink
mirconstr: document voidOut
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbina committed Jul 12, 2023
1 parent 4b313b7 commit 3746c1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/mir/mirconstr.nim
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ func name*(s: var MirNodeSeq, val: EValue) =
s.add MirNode(kind: mnkName, typ: val.typ)

func voidOut*(s: var MirNodeSeq, val: EValue) =
## Ends the input MIR expression as a void-expression (i.e., the
## computed result of the expression is discarded). Corresponds
## to ``mnkVoid``.
s.add MirNode(kind: mnkVoid)

# special operators:
Expand Down

0 comments on commit 3746c1c

Please sign in to comment.