Constructors

Synopses

Declared in <llvm/Transforms/Instrumentation/MemorySanitizer.h>

Construct options with all features disabled.

Construct options with the given origin‐tracking, recovery, and kernel settings.

MemorySanitizerOptions(
    int TrackOrigins,
    bool Recover,
    bool Kernel);

Construct options with the given instrumentation settings.

MemorySanitizerOptions(
    int TrackOrigins,
    bool Recover,
    bool Kernel,
    bool EagerChecks);

Parameters

Name

Description

TrackOrigins

Origin‐tracking depth (0 disables tracking).

Recover

Continue after detecting an error instead of terminating.

Kernel

Instrument for KernelMemorySanitizer instead of user‐space MSan.

EagerChecks

Enable early checks on function arguments.

Created with MrDocs