[llvm] [ADT] Remove Mask in PointerEmbedded (PR #156201)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Aug 30 12:39:52 PDT 2025
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-adt
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
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
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 {
``````````
</details>
https://github.com/llvm/llvm-project/pull/156201
    
    
More information about the llvm-commits
mailing list