Remove memory attributes incompatible with ASan/HWASan instrumentation.
Synopsis
Declared in <llvm/Transforms/Instrumentation/AddressSanitizerCommon.h>
void
removeASanIncompatibleFnAttributes(
Function& F,
bool ReadsArgMem);
Description
Sanitizer checks invalidate previously inferred memory attributes on instrumented or intercepted functions. When ReadsArgMem is true, argument memory may be read by instrumentation and writeonly attributes must be removed.
Parameters
Name |
Description |
F |
Function whose memory attributes may be updated. |
ReadsArgMem |
Whether instrumentation may read argument memory. |
Created with MrDocs