aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp b/contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp
index dc96a3454b72..c48250b07d16 100644
--- a/contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp
+++ b/contrib/llvm-project/lldb/source/Core/DumpDataExtractor.cpp
@@ -119,7 +119,7 @@ static lldb::offset_t DumpAPInt(Stream *s, const DataExtractor &data,
bool is_signed, unsigned radix) {
llvm::Optional<llvm::APInt> apint = GetAPInt(data, &offset, byte_size);
if (apint) {
- std::string apint_str = toString(apint.getValue(), radix, is_signed);
+ std::string apint_str = toString(apint.value(), radix, is_signed);
switch (radix) {
case 2:
s->Write("0b", 2);
@@ -672,7 +672,7 @@ lldb::offset_t lldb_private::DumpDataExtractor(
llvm::Optional<llvm::APInt> apint =
GetAPInt(DE, &offset, semantics_byte_size);
if (apint) {
- llvm::APFloat apfloat(semantics, apint.getValue());
+ llvm::APFloat apfloat(semantics, apint.value());
apfloat.toString(sv, format_precision, format_max_padding);
if (!sv.empty()) {
s->Printf("%*.*s", (int)sv.size(), (int)sv.size(), sv.data());