This commit is contained in:
Andreas Rumpf 2019-06-26 06:55:43 +02:00 • committed by GitHub
commit 0f868b587b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 99 additions and 62 deletions

View file

@ -780,7 +780,7 @@ proc cgsym(m: BModule, name: string): Rope =
# we're picky here for the system module too:
rawMessage(m.config, errGenerated, "system module needs: " & name)
result = sym.loc.r
if m.hcrOn and sym != nil and sym.kind in skProc..skIterator:
if m.hcrOn and sym != nil and sym.kind in {skProc..skIterator}:
result.addActualPrefixForHCR(m.module, sym)
proc generateHeaders(m: BModule) =