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

Eli Friedman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 9 10:49:08 PDT 2025


================
@@ -2627,6 +2627,11 @@ void Verifier::visitConstantPtrAuth(const ConstantPtrAuth *CPA) {
 
   Check(CPA->getDiscriminator()->getBitWidth() == 64,
         "signed ptrauth constant discriminator must be i64 constant integer");
+
+  Check(isa<GlobalValue>(CPA->getDeactivationSymbol()) ||
+            CPA->getDeactivationSymbol()->isNullValue(),
----------------
efriedma-quic wrote:

For things we can easily check in the verifier, I prefer to check them even if there's also an assertion, to catch issues in assert-disabled builds.

Also, missing check in the bitcode parser.

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


More information about the llvm-branch-commits mailing list