[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #172119)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 12 19:34:57 PST 2026


================
@@ -2359,6 +2359,7 @@ void CodeGenFunction::EmitAggregateCopy(LValue Dest, LValue Src, QualType Ty,
 
   auto *Inst = Builder.CreateMemCpy(DestPtr, SrcPtr, SizeVal, isVolatile);
   addInstToCurrentSourceAtom(Inst, nullptr);
+  emitPFPTrivialRelocation(DestPtr, SrcPtr, Ty);
----------------
pcc wrote:

Will do

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


More information about the llvm-branch-commits mailing list