[CSSPGO] Fix MSVC initializing truncation warning (NFC)

MSVC warning:
```
\llvm-project\llvm\include\llvm\Transforms\IPO\SampleProfileProbe.h(65): warning C4305: 'initializing': truncation from 'double' to 'const float'
```
This commit is contained in:
Yang Fan 2021-02-03 11:04:58 +08:00
parent ad50c86333
commit c90c261e44
No known key found for this signature in database
GPG Key ID: 717E4EB972E515EF
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public:
private:
// Allow a little bias due the rounding to integral factors.
constexpr static float DistributionFactorVariance = 0.02;
constexpr static float DistributionFactorVariance = 0.02f;
// Distribution factors from last pass.
FuncProbeFactorMap FunctionProbeFactors;