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

2025-09-12 Thread Oliver Hunt via llvm-branch-commits
ojhunt wrote: > @pcc and I have been discussing this. > > * The perf issues I was concerned about were predicated on access to a > pointer loaded from a field continuing to be checked after the original field > load, this is not the case (and in hindsight doing so would imply passing the > po

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

2025-09-12 Thread Peter Collingbourne via llvm-branch-commits
@@ -2201,6 +2215,22 @@ void CodeGenFunction::EmitCXXConstructorCall( EmitTypeCheck(CodeGenFunction::TCK_ConstructorCall, Loc, This, getContext().getRecordType(ClassDecl), CharUnits::Zero()); + // When initializing an object that has pointer field protect

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

2025-08-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/133538 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

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

2025-08-08 Thread Peter Collingbourne via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/133538 >From e816ed160ed53ff8d9d9039b778c41ecad8a7da2 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 6 Aug 2025 17:12:25 -0700 Subject: [PATCH 1/2] Add tests and documentation Created using spr 1.3.6-beta.1