[clang] [clang][PAC] Sign and authenticate atomics on __ptrauth types (PR #240090)

JF Bastien via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 16:46:47 PST 2026


================
@@ -5572,6 +5581,11 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
   // pointer to a const 'A'.
   ValType.removeLocalVolatile();
   ValType.removeLocalConst();
+  if (ValType.getPointerAuth()) {
+    Qualifiers Quals = ValType.getQualifiers();
+    Quals.removePointerAuth();
+    ValType = Context.getQualifiedType(ValType.getUnqualifiedType(), Quals);
+  }
----------------
jfbastien wrote:

Now none :)

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


More information about the cfe-commits mailing list