diff options
author | Sean Callanan <scallanan@apple.com> | 2012-03-30 02:04:38 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-03-30 02:04:38 +0000 |
commit | 940dd18789f83f28a618a9b588376c8bae557347 (patch) | |
tree | c1862427adf2d94b1ecca12eacb4fb17494e68a9 /source/Core/ValueObjectRegister.cpp | |
parent | 3356d4f89e85301e5ddec2301c75b0626d50703f (diff) | |
download | lldb-940dd18789f83f28a618a9b588376c8bae557347.tar.gz |
Be more careful when overriding the type for a
ValueObject, and make sure that ValueObjects that
have null type names (because they have null types)
also have null qualified type names. This avoids
some potential crashes if
ValueObject::GetQualifiedTypeName tries to get the
name of their type by calling GetClangTypeImpl().
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@153718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Core/ValueObjectRegister.cpp')
-rw-r--r-- | source/Core/ValueObjectRegister.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/Core/ValueObjectRegister.cpp b/source/Core/ValueObjectRegister.cpp index befd610f6..2df5af6d3 100644 --- a/source/Core/ValueObjectRegister.cpp +++ b/source/Core/ValueObjectRegister.cpp @@ -51,8 +51,13 @@ ValueObjectRegisterContext::GetClangTypeImpl () ConstString ValueObjectRegisterContext::GetTypeName() { - ConstString empty_type_name; - return empty_type_name; + return ConstString(); +} + +ConstString +ValueObjectRegisterContext::GetQualifiedTypeName() +{ + return ConstString(); } uint32_t @@ -151,6 +156,12 @@ ValueObjectRegisterSet::GetTypeName() return ConstString(); } +ConstString +ValueObjectRegisterSet::GetQualifiedTypeName() +{ + return ConstString(); +} + uint32_t ValueObjectRegisterSet::CalculateNumChildren() { |