[Lldb-commits] [lldb] r154503 - /lldb/trunk/source/Symbol/ClangASTType.cpp
Greg Clayton
gclayton at apple.com
Wed Apr 11 09:21:21 PDT 2012
Author: gclayton
Date: Wed Apr 11 11:21:20 2012
New Revision: 154503
URL: http://llvm.org/viewvc/llvm-project?rev=154503&view=rev
Log:
Fixed an issue that would cause a crash when dumping fully qualified types.
Modified:
lldb/trunk/source/Symbol/ClangASTType.cpp
Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=154503&r1=154502&r2=154503&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Wed Apr 11 11:21:20 2012
@@ -92,9 +92,12 @@
}
ConstString
-ClangASTType::GetConstQualifiedTypeName (clang::ASTContext *ast, clang_type_t opaque_qual_type)
+ClangASTType::GetConstQualifiedTypeName (clang::ASTContext *ast, clang_type_t clang_type)
{
- return ConstString (GetTypeNameForQualType (ast, clang::QualType::getFromOpaquePtr(opaque_qual_type)).c_str());
+ if (ast == NULL || clang_type == NULL)
+ return ConstString("<invalid>");
+
+ return ConstString (GetTypeNameForQualType (ast, clang::QualType::getFromOpaquePtr(clang_type)).c_str());
}
More information about the lldb-commits
mailing list