================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits