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 1111// ===----------------------------------------------------------------------===//
1212
1313#include " clang/Basic/Sanitizers.h"
14- #include " llvm/ADT/APFloat.h"
1514#include " llvm/ADT/Hashing.h"
1615#include " llvm/ADT/SmallVector.h"
1716#include " llvm/ADT/StringSwitch.h"
17+ #include " llvm/Support/Format.h"
1818#include " llvm/Support/MathExtras.h"
1919#include " llvm/Support/raw_ostream.h"
2020#include < algorithm>
@@ -96,10 +96,9 @@ void clang::serializeSanitizerMaskCutoffs(
9696 const SanitizerMaskCutoffs &Cutoffs, SmallVectorImpl<std::string> &Values) {
9797#define SANITIZER (NAME, ID ) \
9898 if (auto C = Cutoffs[SanitizerKind::SO_##ID]) { \
99- llvm::APFloat F (*C); \
10099 std::string Str; \
101100 llvm::raw_string_ostream OS (Str); \
102- OS << NAME " =" << F; \
101+ OS << NAME " =" << llvm::format ( " %.8f " , *C); \
103102 Values.emplace_back (std::move (Str)); \
104103 }
105104#include " clang/Basic/Sanitizers.def"
You can’t perform that action at this time.
0 commit comments