Make arc compile laser again

This commit is contained in:
Clyybber 2020-07-08 16:20:16 +02:00 • committed by GitHub
commit 27579cfd3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1006,7 +1006,7 @@ proc p(n: PNode; c: var Con; s: var Scope; mode: ProcessMode): PNode =
result[0] = p(n[0], c, s, mode) result[0] = p(n[0], c, s, mode)
for i in 1..<n.len: for i in 1..<n.len:
result[i] = n[i] result[i] = n[i]
of nkGotoState, nkState: of nkGotoState, nkState, nkAsmStmt:
result = n result = n
else: else:
internalError(c.graph.config, n.info, "cannot inject destructors to node kind: " & $n.kind) internalError(c.graph.config, n.info, "cannot inject destructors to node kind: " & $n.kind)