Skip to content

Conversation

kazutakahirata
Copy link
Contributor

Mask, a private enum, isn't used anywhere in the class.

Mask, a private enum, isn't used anywhere in the class.
@llvmbot
Copy link
Member

llvmbot commented Aug 30, 2025

@llvm/pr-subscribers-llvm-adt

Author: Kazu Hirata (kazutakahirata)

Changes

Mask, a private enum, isn't used anywhere in the class.


Full diff: https://github.com/llvm/llvm-project/pull/156201.diff

1 Files Affected:

  • (modified) llvm/include/llvm/ADT/PointerEmbeddedInt.h (-3)
diff --git a/llvm/include/llvm/ADT/PointerEmbeddedInt.h b/llvm/include/llvm/ADT/PointerEmbeddedInt.h
index fbc48af79da1e..04a2b7bff78e0 100644
--- a/llvm/include/llvm/ADT/PointerEmbeddedInt.h
+++ b/llvm/include/llvm/ADT/PointerEmbeddedInt.h
@@ -42,9 +42,6 @@ class PointerEmbeddedInt {
     // We shift as many zeros into the value as we can while preserving the
     // number of bits desired for the integer.
     Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
-
-    // We also want to be able to mask out the preserved bits for asserts.
-    Mask = static_cast<uintptr_t>(-1) << Bits
   };
 
   struct RawValueTag {

@kazutakahirata kazutakahirata merged commit 3c822ea into llvm:main Sep 1, 2025
11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250830_PointerEmbedded_Mask branch September 1, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants