Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Driver/Options.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,758 Lines • ▼ Show 20 Lines | def sanitize_address_destructor_EQ | ||||
: Joined<["-"], "fsanitize-address-destructor=">, | : Joined<["-"], "fsanitize-address-destructor=">, | ||||
Flags<[CC1Option]>, | Flags<[CC1Option]>, | ||||
HelpText<"Set destructor type used in ASan instrumentation">, | HelpText<"Set destructor type used in ASan instrumentation">, | ||||
Group<f_clang_Group>, | Group<f_clang_Group>, | ||||
Values<"none,global">, | Values<"none,global">, | ||||
NormalizedValuesScope<"llvm::AsanDtorKind">, | NormalizedValuesScope<"llvm::AsanDtorKind">, | ||||
NormalizedValues<["None", "Global"]>, | NormalizedValues<["None", "Global"]>, | ||||
MarshallingInfoEnum<CodeGenOpts<"SanitizeAddressDtor">, "Global">; | MarshallingInfoEnum<CodeGenOpts<"SanitizeAddressDtor">, "Global">; | ||||
defm sanitize_memory_param_retval | defm sanitize_memory_param_retval | ||||
vitalybuka: you need to update SanitizerArgs::MsanParamRetval
SanitizerArgs.cpp:1187
```
if (! | |||||
: BoolFOption<"sanitize-memory-param-retval", | : BoolFOption<"sanitize-memory-param-retval", | ||||
CodeGenOpts<"SanitizeMemoryParamRetval">, | CodeGenOpts<"SanitizeMemoryParamRetval">, | ||||
DefaultFalse, | DefaultTrue, | ||||
PosFlag<SetTrue, [CC1Option], "Enable">, NegFlag<SetFalse, [], "Disable">, | PosFlag<SetTrue, [CC1Option], "Enable">, NegFlag<SetFalse, [], "Disable">, | ||||
BothFlags<[], " detection of uninitialized parameters and return values">>; | BothFlags<[], " detection of uninitialized parameters and return values">>; | ||||
//// Note: This flag was introduced when it was necessary to distinguish between | //// Note: This flag was introduced when it was necessary to distinguish between | ||||
// ABI for correct codegen. This is no longer needed, but the flag is | // ABI for correct codegen. This is no longer needed, but the flag is | ||||
// not removed since targeting either ABI will behave the same. | // not removed since targeting either ABI will behave the same. | ||||
// This way we cause no disturbance to existing scripts & code, and if we | // This way we cause no disturbance to existing scripts & code, and if we | ||||
// want to use this flag in the future we will cause no disturbance then | // want to use this flag in the future we will cause no disturbance then | ||||
// either. | // either. | ||||
▲ Show 20 Lines • Show All 5,208 Lines • Show Last 20 Lines |
you need to update SanitizerArgs::MsanParamRetval
SanitizerArgs.cpp:1187
without that option.td is no-op
Then D134683 works with and without your patch