mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
nullable unwrapped for the dev backend
This commit is contained in:
parent
0adf075123
commit
f6fafdb019
8 changed files with 198 additions and 10 deletions
|
@ -305,6 +305,10 @@ pub fn isUnique(
|
|||
|
||||
const isizes: [*]isize = @intToPtr([*]isize, masked_ptr);
|
||||
|
||||
if (DEBUG_INCDEC and builtin.target.cpu.arch != .wasm32) {
|
||||
std.debug.print("| is unique {*}\n", .{&bytes[0]});
|
||||
}
|
||||
|
||||
const refcount = (isizes - 1)[0];
|
||||
|
||||
return refcount == REFCOUNT_ONE_ISIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue