summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/Materializer.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-01-29 17:52:34 +0000
committerAdrian Prantl <aprantl@apple.com>2019-01-29 17:52:34 +0000
commitd13777aa18cfe2904110038429095433b92783f3 (patch)
tree915631dee2d4fe2bedd075ca6b5c2212374912ad /lldb/source/Expression/Materializer.cpp
parentcd6b240303034d3a9a1328c7019a272d510eaa39 (diff)
downloadbcm5719-llvm-d13777aa18cfe2904110038429095433b92783f3.tar.gz
bcm5719-llvm-d13777aa18cfe2904110038429095433b92783f3.zip
Make Type::GetByteSize optional (NFC)
This is a continuation of my quest to make the size 0 a supported value. This reapplies r352394 with additional PDB parser fixes prepared by Pavel Labath! Differential Revision: https://reviews.llvm.org/D57273 llvm-svn: 352521
Diffstat (limited to 'lldb/source/Expression/Materializer.cpp')
-rw-r--r--lldb/source/Expression/Materializer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp
index 9b301095571..545dcdcb1c1 100644
--- a/lldb/source/Expression/Materializer.cpp
+++ b/lldb/source/Expression/Materializer.cpp
@@ -537,7 +537,8 @@ public:
"size of variable %s (%" PRIu64
") is larger than the ValueObject's size (%" PRIu64 ")",
m_variable_sp->GetName().AsCString(),
- m_variable_sp->GetType()->GetByteSize(), data.GetByteSize());
+ m_variable_sp->GetType()->GetByteSize().getValueOr(0),
+ data.GetByteSize());
}
return;
}
OpenPOWER on IntegriCloud