[compiler-rt] [llvm] [TySan] Add option to outline instrumentation (PR #120582)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 02:21:10 PDT 2025
================
@@ -834,37 +899,46 @@ bool TypeSanitizer::instrumentMemInst(Value *V, Instruction *ShadowBase,
}
}
- if (!ShadowBase)
- ShadowBase = getShadowBase(*F);
- if (!AppMemMask)
- AppMemMask = getAppMemMask(*F);
+ if (ClOutlineInstrumentation) {
+ if (!Src) {
+ Src = ConstantPointerNull::get(IRB.getPtrTy());
+ }
----------------
fhahn wrote:
```suggestion
if (!Src)
Src = ConstantPointerNull::get(IRB.getPtrTy());
```
https://github.com/llvm/llvm-project/pull/120582
More information about the llvm-commits
mailing list