summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-01-28 02:43:15 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-01-28 02:43:15 +0000
commite2452289030cb31a27aa1b13d889d8569d57234c (patch)
tree65a683f4f19ff3c0e6d7fba0a7f6abc0c54379a3 /llvm
parentfa1a3c7cf5444ab3acd7bccee5ae47056fa4f506 (diff)
downloadbcm5719-llvm-e2452289030cb31a27aa1b13d889d8569d57234c.tar.gz
bcm5719-llvm-e2452289030cb31a27aa1b13d889d8569d57234c.zip
Add description to assert
llvm-svn: 227291
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index f636142a7ed..07959a5a836 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -627,7 +627,7 @@ static uint64_t getBaseTypeSize(DwarfDebug *DD, DIDerivedType Ty) {
DIType BaseType = DD->resolve(Ty.getTypeDerivedFrom());
- assert(BaseType.isValid());
+ assert(BaseType.isValid() && "Unexpected invalid base type");
// If this is a derived type, go ahead and get the base type, unless it's a
// reference then it's just the size of the field. Pointer types have no need
OpenPOWER on IntegriCloud