From: David Blaikie Date: Wed, 28 Jan 2015 02:43:15 +0000 (+0000) Subject: Add description to assert X-Git-Tag: llvmorg-3.7.0-rc1~13872 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2452289030cb31a27aa1b13d889d8569d57234c;p=platform%2Fupstream%2Fllvm.git Add description to assert llvm-svn: 227291 --- diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index f636142..07959a5 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