Skip to content

Commit

Permalink
fix: package lazy scope key pattern
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed May 6, 2024
1 parent 7567ee5 commit 325d4d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kclvm/compiler/src/codegen/llvm/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ impl<'ctx> LLVMCodeGenContext<'ctx> {
lambda_fn_ptr,
],
);
let key = format!("{}.{name}", pkgpath_without_prefix!(pkgpath));
self.setter_keys
.borrow_mut()
.insert(format!("{pkgpath}.{name}"));
.insert(key);
if !body_map.contains_key(name) {
body_map.insert(name.to_string(), vec![]);
}
Expand Down

0 comments on commit 325d4d8

Please sign in to comment.