From: David Blaikie Date: Wed, 28 Jan 2015 02:43:15 +0000 (+0000) Subject: Add description to assert X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41c1bc24e4deda8cfb3f8981212897e82da34402;p=oota-llvm.git Add description to assert git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227291 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index f636142a7ed..07959a5a836 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/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