Skip to content

Commit e628581

Browse files
authored
[NFC][HWASAN][UBSAN] Remove cl:init from few opts (llvm#87692)
They are supposed to be used with `getNumOccurrences`.
1 parent 2cbbbf7 commit e628581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static cl::opt<int> ClHotPercentileCutoff("hwasan-percentile-cutoff-hot",
191191
cl::desc("Hot percentile cuttoff."));
192192

193193
static cl::opt<float>
194-
ClRandomSkipRate("hwasan-random-skip-rate", cl::init(0),
194+
ClRandomSkipRate("hwasan-random-skip-rate",
195195
cl::desc("Probability value in the range [0.0, 1.0] "
196196
"to skip instrumentation of a function."));
197197

llvm/lib/Transforms/Instrumentation/RemoveTrapsPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static cl::opt<int> HotPercentileCutoff("remove-traps-percentile-cutoff-hot",
2626
cl::desc("Hot percentile cuttoff."));
2727

2828
static cl::opt<float>
29-
RandomRate("remove-traps-random-rate", cl::init(0.0),
29+
RandomRate("remove-traps-random-rate",
3030
cl::desc("Probability value in the range [0.0, 1.0] of "
3131
"unconditional pseudo-random checks removal."));
3232

0 commit comments

Comments
 (0)