summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-10-14 22:44:50 +0000
committerEnrico Granata <egranata@apple.com>2015-10-14 22:44:50 +0000
commitc3ef0ed5bfa95c4e37065135cbd2cb47ffce446f (patch)
treed173bf031484c42a6e908d968cdea6738878b69c /lldb/source
parent95438038018e8e102f902c2b4dd04cb4b81a93c3 (diff)
downloadbcm5719-llvm-c3ef0ed5bfa95c4e37065135cbd2cb47ffce446f.tar.gz
bcm5719-llvm-c3ef0ed5bfa95c4e37065135cbd2cb47ffce446f.zip
Fix a couple issues where trying to print a type would cause LLDB to crash
llvm-svn: 250340
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 2ffb6d62bae..383758876c5 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -4431,7 +4431,7 @@ ClangASTContext::GetBitSize (lldb::opaque_compiler_type_t type, ExecutionContext
if (!g_printed)
{
StreamString s;
- DumpTypeDescription(&s);
+ DumpTypeDescription(type, &s);
llvm::outs() << "warning: trying to determine the size of type ";
llvm::outs() << s.GetString() << "\n";
@@ -8822,7 +8822,7 @@ void
ClangASTContext::DumpTypeDescription (lldb::opaque_compiler_type_t type)
{
StreamFile s (stdout, false);
- DumpTypeDescription (&s);
+ DumpTypeDescription (type, &s);
ClangASTMetadata *metadata = ClangASTContext::GetMetadata (getASTContext(), type);
if (metadata)
{
OpenPOWER on IntegriCloud