make `isLiteral` compatible with ARC and ORC (#602)

(cherry picked from commit 2d4dad07165cd53e3e81af0dffb462609a93e555)
This commit is contained in:
Miran 2021-07-01 12:05:50 +02:00 committed by GitHub
parent 26e47d7da5
commit c12f00c8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -37,6 +37,9 @@ proc len*(vb: VBuffer): int =
doAssert(result >= 0) doAssert(result >= 0)
proc isLiteral[T](s: seq[T]): bool {.inline.} = proc isLiteral[T](s: seq[T]): bool {.inline.} =
when defined(gcOrc) or defined(gcArc):
false
else:
type type
SeqHeader = object SeqHeader = object
length, reserved: int length, reserved: int