don't check a non-recursive tag union for uniqueness

This commit is contained in:
Folkert 2023-04-28 18:46:07 +02:00
parent 5d1349973e
commit b9cc3b7823
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 38 additions and 22 deletions

View file

@ -1139,6 +1139,13 @@ trait Backend<'a> {
arg_layouts,
ret_layout,
),
LowLevel::RefCountIsUnique => self.build_fn_call(
sym,
bitcode::UTILS_IS_UNIQUE.to_string(),
args,
arg_layouts,
ret_layout,
),
LowLevel::NumToStr => {
let arg_layout = arg_layouts[0];
let intrinsic = match self.interner().get(arg_layout) {