File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
// ===----------------------------------------------------------------------===//
12
12
13
13
#include " clang/Basic/Sanitizers.h"
14
- #include " llvm/ADT/APFloat.h"
15
14
#include " llvm/ADT/Hashing.h"
16
15
#include " llvm/ADT/SmallVector.h"
17
16
#include " llvm/ADT/StringSwitch.h"
17
+ #include " llvm/Support/Format.h"
18
18
#include " llvm/Support/MathExtras.h"
19
19
#include " llvm/Support/raw_ostream.h"
20
20
#include < algorithm>
@@ -96,10 +96,9 @@ void clang::serializeSanitizerMaskCutoffs(
96
96
const SanitizerMaskCutoffs &Cutoffs, SmallVectorImpl<std::string> &Values) {
97
97
#define SANITIZER (NAME, ID ) \
98
98
if (auto C = Cutoffs[SanitizerKind::SO_##ID]) { \
99
- llvm::APFloat F (*C); \
100
99
std::string Str; \
101
100
llvm::raw_string_ostream OS (Str); \
102
- OS << NAME " =" << F; \
101
+ OS << NAME " =" << llvm::format ( " %.8f " , *C); \
103
102
Values.emplace_back (std::move (Str)); \
104
103
}
105
104
#include " clang/Basic/Sanitizers.def"
You can’t perform that action at this time.
0 commit comments