diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-02-22 06:42:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 23:42:28 +0100 |
commit | a3603c8a6ee4a8ae147d2f2099a18395e819a8a3 (patch) | |
tree | 7d040f2a24cadcc1472294f9f2ab0cfa53042894 | |
parent | 0a45543cc1e8a2e8db59eaed864cd908726bf48d (diff) | |
download | Nim-a3603c8a6ee4a8ae147d2f2099a18395e819a8a3.tar.gz |
saves one unnecessary compare which is also a small regression (#21413)
saves one unnecessary compare which is also a sall regression follow up https://github.com/nim-lang/Nim/commit/d30c6419a051a815e3fdb354ac79522f17e55bda
-rw-r--r-- | compiler/passes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/passes.nim b/compiler/passes.nim index a8f67300c..c20763fc3 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -143,7 +143,7 @@ proc processModule*(graph: ModuleGraph; module: PSym; idgen: IdGenerator; while true: openParser(p, fileIdx, s, graph.cache, graph.config) - if not belongsToStdlib(graph, module) or (belongsToStdlib(graph, module) and module.name.s == "distros"): + if (not belongsToStdlib(graph, module)) or module.name.s == "distros": # XXX what about caching? no processing then? what if I change the # modules to include between compilation runs? we'd need to track that # in ROD files. I think we should enable this feature only |