================
@@ -5671,8 +5685,11 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange,
SourceRange ExprRange,
ValArg->getType()->getAs<PointerType>()) {
AS = PtrTy->getPointeeType().getAddressSpace();
}
- Ty = Context.getPointerType(
- Context.getAddrSpaceQualType(ValType.getUnqualifiedType(), AS));
+ QualType Pointee = ValType.getUnqualifiedType();
+ if (PointerAuth)
+ Pointee = Context.getPointerAuthType(Pointee, PointerAuth);
+ Ty =
+ Context.getPointerType(Context.getAddrSpaceQualType(Pointee,
AS));
----------------
jfbastien wrote:
Operand rules: I have a follow up ready for this.
https://github.com/llvm/llvm-project/pull/240090
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits