Skip to content

Commit

Permalink
Revert "cps: convert application of cpsTyped to calls"
Browse files Browse the repository at this point in the history
Turns out the problem wasn't this.

This reverts commit 184c3cd.
  • Loading branch information
alaviss committed Jan 19, 2024
1 parent 872b433 commit 2b43e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cps.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ macro cps*(tipe: typed, n: untyped): untyped =
result = n
when not defined(nimdoc):
# add the application of the typed transformation pass
var n = newCall(bindSym"cpsTyped", tipe):
n
n.addPragma:
nnkExprColonExpr.newTree(bindSym"cpsTyped", tipe)
# let the untyped pass do what it will with this input
# XXX: currently disabled because it's a slipperly slope of regret
#result = performUntypedPass(T, n)
Expand Down

0 comments on commit 2b43e02

Please sign in to comment.