[llvm] 3c822ea - [ADT] Remove Mask in PointerEmbedded (#156201)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 31 19:18:32 PDT 2025


Author: Kazu Hirata
Date: 2025-08-31T19:18:28-07:00
New Revision: 3c822ea7a8e276792905858e8780500f45cda589

URL: https://github.com/llvm/llvm-project/commit/3c822ea7a8e276792905858e8780500f45cda589
DIFF: https://github.com/llvm/llvm-project/commit/3c822ea7a8e276792905858e8780500f45cda589.diff

LOG: [ADT] Remove Mask in PointerEmbedded (#156201)

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

Added: 
    

Modified: 
    llvm/include/llvm/ADT/PointerEmbeddedInt.h

Removed: 
    


################################################################################
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 {


        


More information about the llvm-commits mailing list