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

Eli Friedman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 27 23:08:15 PDT 2025


================
@@ -1699,7 +1699,9 @@ LLVMValueRef LLVMConstantPtrAuth(LLVMValueRef Ptr, LLVMValueRef Key,
                                  LLVMValueRef Disc, LLVMValueRef AddrDisc) {
   return wrap(ConstantPtrAuth::get(
       unwrap<Constant>(Ptr), unwrap<ConstantInt>(Key),
-      unwrap<ConstantInt>(Disc), unwrap<Constant>(AddrDisc)));
+      unwrap<ConstantInt>(Disc), unwrap<Constant>(AddrDisc),
+      ConstantPointerNull::get(
+          cast<PointerType>(unwrap<Constant>(AddrDisc)->getType()))));
----------------
efriedma-quic wrote:

Do we want to extend the C API to give access to this?

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


More information about the llvm-branch-commits mailing list