[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:02 PST 2026


================
@@ -1030,7 +1059,7 @@ RValue CodeGenFunction::EmitAtomicExpr(AtomicExpr *E) {
         E->getOp() == AtomicExpr::AO__scoped_atomic_compare_exchange)
       Val2 = EmitPointerWithAlignment(E->getVal2());
     else
-      Val2 = EmitValToTemp(*this, E->getVal2());
+      Val2 = EmitValToTemp(*this, E->getVal2(), AtomicTy.getPointerAuth(), Ptr);
----------------
jfbastien wrote:

I think it already does this?

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


More information about the cfe-commits mailing list