Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d82b563 commit 0122142Copy full SHA for 0122142
1 file changed
clang/lib/AST/ByteCode/Disasm.cpp
@@ -28,6 +28,7 @@
28
#include "clang/AST/DeclCXX.h"
29
#include "clang/AST/ExprCXX.h"
30
#include "llvm/Support/Compiler.h"
31
+#include "llvm/Support/FormatVariadic.h"
32
33
using namespace clang;
34
using namespace clang::interp;
@@ -328,9 +329,9 @@ static std::string formatBytes(size_t B) {
328
329
if (B < (1u << 10u))
330
SS << B << " B";
331
else if (B < (1u << 20u))
- SS << llvm::format("{0:F2}", B / 1024.) << " KB";
332
+ SS << llvm::formatv("{0:F2}", B / 1024.) << " KB";
333
else
- SS << llvm::format("{0:F2}", B / 1024. / 1024.) << " MB";
334
+ SS << llvm::formatv("{0:F2}", B / 1024. / 1024.) << " MB";
335
336
return Result;
337
}
0 commit comments