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

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 27 23:26:25 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()))));
----------------
pcc wrote:

I reckon that could be done in a followup if anyone needs it.

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


More information about the llvm-branch-commits mailing list