Skip to content

Commit

Permalink
fixes #20162; locals doesn't work with ORC [backport] (#20163)
Browse files Browse the repository at this point in the history
fixes #20162; locals doesn't work with ORC
  • Loading branch information
ringabout authored Aug 23, 2022
1 parent 8fc19b9 commit 25c6491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/plugins/locals.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ".." / [ast, astalgo,
proc semLocals*(c: PContext, n: PNode): PNode =
var counter = 0
var tupleType = newTypeS(tyTuple, c)
result = newNodeIT(nkPar, n.info, tupleType)
result = newNodeIT(nkTupleConstr, n.info, tupleType)
tupleType.n = newNodeI(nkRecList, n.info)
let owner = getCurrOwner(c)
# for now we skip openarrays ...
Expand Down
1 change: 1 addition & 0 deletions tests/misc/tlocals.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
discard """
matrix: "--mm:refc; --mm:orc"
output: '''(x: "string here", a: 1)
b is 5
x is 12'''
Expand Down

0 comments on commit 25c6491

Please sign in to comment.