diff options
Diffstat (limited to 'llvm/lib/Support/FormatVariadic.cpp')
-rw-r--r-- | llvm/lib/Support/FormatVariadic.cpp | 2 |
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 |