aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FormatVariadic.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-03 14:10:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-03 14:10:23 +0000
commit145449b1e420787bb99721a429341fa6be3adfb6 (patch)
tree1d56ae694a6de602e348dd80165cf881a36600ed /llvm/lib/Support/FormatVariadic.cpp
parentecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (diff)
Diffstat (limited to 'llvm/lib/Support/FormatVariadic.cpp')
-rw-r--r--llvm/lib/Support/FormatVariadic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FormatVariadic.cpp b/llvm/lib/Support/FormatVariadic.cpp
index f6d48bcd50e8..0709d65e81e0 100644
--- a/llvm/lib/Support/FormatVariadic.cpp
+++ b/llvm/lib/Support/FormatVariadic.cpp
@@ -130,7 +130,7 @@ formatv_object_base::splitLiteralAndReplacement(StringRef Fmt) {
StringRef Right = Fmt.substr(BC + 1);
auto RI = parseReplacementItem(Spec);
- if (RI.hasValue())
+ if (RI)
return std::make_pair(*RI, Right);
// If there was an error parsing the replacement item, treat it as an