[clang] Fix -fsanitize-system-blacklist processing in cc1

This commit is contained in:
Jan Korous 2019-11-08 13:56:37 -08:00
parent cae4a28864
commit 555c6be041
1 changed files with 5 additions and 0 deletions

View File

@ -3194,6 +3194,11 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.SanitizeAddressFieldPadding =
getLastArgIntValue(Args, OPT_fsanitize_address_field_padding, 0, Diags);
Opts.SanitizerBlacklistFiles = Args.getAllArgValues(OPT_fsanitize_blacklist);
std::vector<std::string> systemBlacklists =
Args.getAllArgValues(OPT_fsanitize_system_blacklist);
Opts.SanitizerBlacklistFiles.insert(Opts.SanitizerBlacklistFiles.end(),
systemBlacklists.begin(),
systemBlacklists.end());
// -fxray-instrument
Opts.XRayInstrument =