aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ScopedPrinter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-02-11 12:38:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-02-11 12:38:11 +0000
commite3b557809604d036af6e00c60f012c2025b59a5e (patch)
tree8a11ba2269a3b669601e2fd41145b174008f4da8 /llvm/lib/Support/ScopedPrinter.cpp
parent08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff)
Diffstat (limited to 'llvm/lib/Support/ScopedPrinter.cpp')
-rw-r--r--llvm/lib/Support/ScopedPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/ScopedPrinter.cpp b/llvm/lib/Support/ScopedPrinter.cpp
index ef6dd5fdf1d6..a17e397c0aa5 100644
--- a/llvm/lib/Support/ScopedPrinter.cpp
+++ b/llvm/lib/Support/ScopedPrinter.cpp
@@ -31,7 +31,8 @@ void ScopedPrinter::printBinaryImpl(StringRef Label, StringRef Str,
startLine() << Label << ":";
if (!Str.empty())
OS << " " << Str;
- OS << " (" << format_bytes(Data, None, Data.size(), 1, 0, true) << ")\n";
+ OS << " (" << format_bytes(Data, std::nullopt, Data.size(), 1, 0, true)
+ << ")\n";
}
}