recover null-ptr optimization by adding a special case to the niching logic

This commit is contained in:
Moulins 2023-06-26 15:40:13 +02:00
parent 76c49aead6
commit 4fb039ed6c
2 changed files with 13 additions and 8 deletions

View file

@ -1087,6 +1087,7 @@ where
// this will continue to work as long as we don't start
// using more niches than just null (e.g., the first page of
// the address space, or unaligned pointers).
// FIXME(reference_niches): well, the day has come...
Variants::Multiple {
tag_encoding: TagEncoding::Niche { untagged_variant, .. },
tag_field,