diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-01-28 17:49:33 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-01-28 17:49:33 +0000 |
commit | 729fcf179356c1dd672ea060a653ebbe9fe9cbf6 (patch) | |
tree | 68527ba173c00d888cc33befe4b07d50826eb677 /lldb/source/Expression/Materializer.cpp | |
parent | 932108703a26491d4bda6723c1049fd50702d44d (diff) | |
download | llvm-729fcf179356c1dd672ea060a653ebbe9fe9cbf6.zip llvm-729fcf179356c1dd672ea060a653ebbe9fe9cbf6.tar.gz llvm-729fcf179356c1dd672ea060a653ebbe9fe9cbf6.tar.bz2 |
Make Type::GetByteSize optional (NFC)
This is a continuation of my quest to make the size 0 a supported value.
Differential Revision: https://reviews.llvm.org/D57273
llvm-svn: 352394
Diffstat (limited to 'lldb/source/Expression/Materializer.cpp')
-rw-r--r-- | lldb/source/Expression/Materializer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp index 9b30109..545dcdc 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; } |