Skip to content

Commit 17ecca4

Browse files
committed
rtrim('0')
1 parent d8a3696 commit 17ecca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/Sanitizers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void clang::serializeSanitizerMaskCutoffs(
9999
std::string Str; \
100100
llvm::raw_string_ostream OS(Str); \
101101
OS << NAME "=" << llvm::format("%.8f", *C); \
102-
Values.emplace_back(std::move(Str)); \
102+
Values.emplace_back(StringRef(Str).rtrim('0')); \
103103
}
104104
#include "clang/Basic/Sanitizers.def"
105105
}

0 commit comments

Comments
 (0)