File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,11 @@ struct SanitizerKind {
154154#include " clang/Basic/Sanitizers.def"
155155}; // SanitizerKind
156156
157- struct SanitizerMaskCutoffs {
157+ class SanitizerMaskCutoffs {
158158 std::array<float , SanitizerKind::SO_Count> cutoffs = {0 };
159159
160+ public:
160161 float &operator [](int index) { return cutoffs[index]; }
161-
162162 const float &operator [](int index) const { return cutoffs[index]; }
163163}; // SanitizerMaskCutoffs;
164164
Original file line number Diff line number Diff line change @@ -1440,7 +1440,7 @@ static SanitizerMaskCutoffs
14401440parseSanitizerWeightedKinds (StringRef FlagName,
14411441 const std::vector<std::string> &Sanitizers,
14421442 DiagnosticsEngine &Diags) {
1443- SanitizerMaskCutoffs Cutoffs = { 0 } ;
1443+ SanitizerMaskCutoffs Cutoffs;
14441444 for (const auto &Sanitizer : Sanitizers) {
14451445 if (!parseSanitizerWeightedValue (Sanitizer, /* AllowGroups=*/ false , Cutoffs))
14461446 Diags.Report (diag::err_drv_invalid_value) << FlagName << Sanitizer;
You can’t perform that action at this time.
0 commit comments