diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp b/contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp index 44d3acccfdb2..557b6cdf98ce 100644 --- a/contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp +++ b/contrib/llvm-project/llvm/lib/Testing/Support/Annotations.cpp @@ -33,12 +33,12 @@ Annotations::Annotations(llvm::StringRef Text) { Code.reserve(Text.size()); while (!Text.empty()) { if (Text.consume_front("^")) { - Points[Name.getValueOr("")].push_back(Code.size()); + Points[Name.value_or("")].push_back(Code.size()); Name = llvm::None; continue; } if (Text.consume_front("[[")) { - OpenRanges.emplace_back(Name.getValueOr(""), Code.size()); + OpenRanges.emplace_back(Name.value_or(""), Code.size()); Name = llvm::None; continue; } |