diff options
| author | Sean Callanan <scallanan@apple.com> | 2012-02-27 19:22:39 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2012-02-27 19:22:39 +0000 |
| commit | 8b665986528c5eeedc5fb8ec637c8d109da9dd81 (patch) | |
| tree | 7bba241e39892278e5ad9b007ec295775218cee1 /lldb/source/Expression | |
| parent | b260f206d2fb7d58c721045b5a59003f234797bf (diff) | |
| download | bcm5719-llvm-8b665986528c5eeedc5fb8ec637c8d109da9dd81.tar.gz bcm5719-llvm-8b665986528c5eeedc5fb8ec637c8d109da9dd81.zip | |
Harden the checks on the type returned from the
AST importer because we're seeing occasional
crashes.
llvm-svn: 151541
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/ClangASTSource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Expression/ClangASTSource.cpp b/lldb/source/Expression/ClangASTSource.cpp index 3376bd1c5b1..593b617abb9 100644 --- a/lldb/source/Expression/ClangASTSource.cpp +++ b/lldb/source/Expression/ClangASTSource.cpp @@ -1300,6 +1300,11 @@ ClangASTSource::GuardedCopyType (ASTContext *dest_context, SetImportInProgress(false); + if (ret_qual_type->getCanonicalTypeInternal().isNull()) + // this shouldn't happen, but we're hardening because the AST importer seems to be generating bad types + // on occasion. + return NULL; + return ret; } |

