[clang] [compiler-rt] [llvm] [compiler-rt][CSan] Add a minimal value-check configuration (PR #244727)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 12:01:43 PST 2026


================
@@ -442,9 +468,14 @@ bool ConcurrencySanitizer::instrumentLoadOrStore(Instruction *I,
                                                  const DataLayout &DL) {
   const bool IsWrite = isa<StoreInst>(I);
   Value *Addr = getLoadStorePointerOperand(I);
-  if (!insertAccessProbe(I, Addr, getLoadStoreType(I), DL, IsWrite,
-                         /*IsCompound=*/false, /*IsAtomic=*/false))
+  Type *AccessTy = getLoadStoreType(I);
+  if (ClMinimal) {
+    if (!insertTypedValueCheck(I, Addr, AccessTy, DL, IsWrite))
----------------
jhuber6 wrote:

I don't think there's a need to? Distinguish volatile is for atomics and this mode completely ignores atomics.

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


More information about the cfe-commits mailing list