diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-01-04 15:59:10 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-04 15:59:10 +0100 |
commit | 464d037c1758243664d46595ab4bd800d86e041f (patch) | |
tree | 2885cc822fa362f6f5b8603b882feab6e0a02a18 /compiler/passes.nim | |
parent | 2e635ab28cb60be5e63e01ecf074596ccc385696 (diff) | |
parent | 2cf94fe7e74afcd48aa8ee19f59231baf56737d6 (diff) | |
download | Nim-464d037c1758243664d46595ab4bd800d86e041f.tar.gz |
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'compiler/passes.nim')
-rw-r--r-- | compiler/passes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/passes.nim b/compiler/passes.nim index b84fe2f4d..29b27627d 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -18,7 +18,7 @@ import type TPassContext* = object of RootObj # the pass's context - fromCache*: bool # true if created by "openCached" + rd*: PRodReader # != nil if created by "openCached" PPassContext* = ref TPassContext @@ -118,7 +118,7 @@ proc openPassesCached(g: ModuleGraph; a: var TPassContextArray, module: PSym, if not isNil(gPasses[i].openCached): a[i] = gPasses[i].openCached(g, module, rd) if a[i] != nil: - a[i].fromCache = true + a[i].rd = rd else: a[i] = nil |