[llvm] r227291 - Add description to assert

David Blaikie dblaikie at gmail.com
Tue Jan 27 18:43:15 PST 2015


Author: dblaikie
Date: Tue Jan 27 20:43:15 2015
New Revision: 227291

URL: http://llvm.org/viewvc/llvm-project?rev=227291&view=rev
Log:
Add description to assert

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=227291&r1=227290&r2=227291&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Tue Jan 27 20:43:15 2015
@@ -627,7 +627,7 @@ static uint64_t getBaseTypeSize(DwarfDeb
 
   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





More information about the llvm-commits mailing list