[clang] [clang][PAC] Fix builtins that claim address discriminated types are bitwise compatible (PR #154490)

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 3 18:15:42 PDT 2025


================
@@ -656,8 +656,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
   bool containsNonRelocatablePointerAuth(QualType T) {
     if (!isPointerAuthenticationAvailable())
       return false;
-    return findPointerAuthContent(T) ==
-           PointerAuthContent::AddressDiscriminatedData;
+    return findPointerAuthContent(T) != PointerAuthContent::None;
----------------
pcc wrote:

Since this function and `containsAddressDiscriminatedPointerAuth` now do the same thing, can we remove one of them?

https://github.com/llvm/llvm-project/pull/154490


More information about the cfe-commits mailing list