aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ScopedPrinter.cpp
diff options
context:
space:
mode:
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";
}
}