[llvm-branch-commits] [llvm] Add deactivation symbol operand to ConstantPtrAuth. (PR #133537)

Oliver Hunt via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 11 13:41:26 PDT 2025


================
@@ -2135,6 +2135,11 @@ bool ConstantPtrAuth::hasSpecialAddressDiscriminator(uint64_t Value) const {
 bool ConstantPtrAuth::isKnownCompatibleWith(const Value *Key,
                                             const Value *Discriminator,
                                             const DataLayout &DL) const {
+  // This function may only be validly called to analyze a ptrauth operation with
+  // no deactivation symbol, so if we have one it isn't compatible.
+  if (!getDeactivationSymbol()->isNullValue())
----------------
ojhunt wrote:

Sigh, IR vs clang again - I was thinking about this in the context of qualified type compatibility. Sigh.

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


More information about the llvm-branch-commits mailing list