Merge pull request #2085 from rtfeldman/set-refcounting-bugfix

Fix a bug in LLVM backend refcounting
This commit is contained in:
Folkert de Vries 2021-11-27 02:10:05 +01:00 committed by GitHub
commit 29c058ee08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,8 +442,8 @@ fn modify_refcount_builtin<'a, 'ctx, 'env>(
Some(function)
}
Set(element_layout) => {
let key_layout = &Layout::Struct(&[]);
let value_layout = element_layout;
let key_layout = element_layout;
let value_layout = &Layout::Struct(&[]);
let function = modify_refcount_dict(
env,