summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-05-17 18:15:05 +0000
committerGreg Clayton <gclayton@apple.com>2011-05-17 18:15:05 +0000
commitdc968d1665b6b218bd0c2fbdf9f8afe41f9413dc (patch)
treebd9c73865279c1f80f3d56475847e9d656a00ee0
parentc5e9a7dc2b94247c24fcf1f2e4f144e56442d314 (diff)
downloadbcm5719-llvm-dc968d1665b6b218bd0c2fbdf9f8afe41f9413dc.tar.gz
bcm5719-llvm-dc968d1665b6b218bd0c2fbdf9f8afe41f9413dc.zip
Fixed an assert that could cause a crash when there was an
unrecognized DW_TAG_base_type. Now it is a error printed to stderr. llvm-svn: 131473
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 3797769f6f2..9695fdce3f1 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -862,7 +862,14 @@ ClangASTContext::GetBuiltinTypeForDWARFEncodingAndBitSize (const char *type_name
}
// This assert should fire for anything that we don't catch above so we know
// to fix any issues we run into.
- assert (!"error: ClangASTContext::GetClangTypeForDWARFEncodingAndSize() contains an unhandled encoding. Fix this ASAP!");
+ if (type_name)
+ {
+ fprintf (stderr, "error: need to add support for DW_TAG_base_type '%s' encoded with DW_ATE = 0x%x, bit_size = %u\n", type_name, dw_ate, bit_size);
+ }
+ else
+ {
+ fprintf (stderr, "error: need to add support for DW_TAG_base_type encoded with DW_ATE = 0x%x, bit_size = %u\n", dw_ate, bit_size);
+ }
return NULL;
}
OpenPOWER on IntegriCloud