summary refs log tree commit diff stats
path: root/compiler/ic
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2023-12-02 05:28:24 +0100
committerGitHub <noreply@github.com>2023-12-02 05:28:24 +0100
commit0d24f765461785e5648ee580e0a4158eb344ee97 (patch)
tree9dcf1ecb71f26a4fd28120f8285b325a22a90b87 /compiler/ic
parent5dfa1345fa2c046a42730a6357b12245e5ee3f06 (diff)
downloadNim-0d24f765461785e5648ee580e0a4158eb344ee97.tar.gz
fixes #22552 (#23014)
Diffstat (limited to 'compiler/ic')
-rw-r--r--compiler/ic/ic.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ic/ic.nim b/compiler/ic/ic.nim
index 2f03ffb43..b12db194c 100644
--- a/compiler/ic/ic.nim
+++ b/compiler/ic/ic.nim
@@ -1089,7 +1089,8 @@ proc needsRecompile(g: var PackedModuleGraph; conf: ConfigRef; cache: IdentCache
       else:
         result = optForceFullMake in conf.globalOptions
         # check its dependencies:
-        for dep in g[m].fromDisk.imports:
+        let imp = g[m].fromDisk.imports
+        for dep in imp:
           let fid = toFileIndex(dep, g[m].fromDisk, conf)
           # Warning: we need to traverse the full graph, so
           # do **not use break here**!