fixes #20162; locals doesn't work with ORC [backport] (#20163)

fixes #20162; locals doesn't work with ORC
This commit is contained in:
ringabout
2022-08-23 15:00:23 +08:00
committed by GitHub
parent 8fc19b9e12
commit 25c6491b65
2 changed files with 2 additions and 1 deletions

View File

@@ -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 ...

View File

@@ -1,4 +1,5 @@
discard """
matrix: "--mm:refc; --mm:orc"
output: '''(x: "string here", a: 1)
b is 5
x is 12'''