Skip to content

Commit

Permalink
fix update invalidated resolver cache
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <18012015693@163.com>
  • Loading branch information
He1pa committed Mar 8, 2024
1 parent 758ae95 commit ef3679b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kclvm/sema/src/resolver/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ impl DependencyGraph {
if let Some(main_modules) = program.pkgs.get(kclvm_ast::MAIN_PKG) {
for module in main_modules {
let result = self.invalidate_module(module)?;
let _ = result.into_iter().map(|pkg| invalidated_set.insert(pkg));
let _ = result.into_iter().for_each(|pkg| {
invalidated_set.insert(pkg);
});
self.remove_dependency_from_pkg(&module.filename);
self.add_new_module(module);
}
Expand Down

0 comments on commit ef3679b

Please sign in to comment.