diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index b5dfe41e84e..c9c4dde7e85 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -631,6 +631,7 @@ void AssemblyWriter::printSymbolTable(const SymbolTable &ST) { if (const Constant *CPV = dyn_cast(V)) { printConstant(CPV); } else if (const Type *Ty = dyn_cast(V)) { + assert(Ty->getType() == Type::TypeTy && TI->first == Type::TypeTy); Out << "\t" << getLLVMName(I->first) << " = type "; // Make sure we print out at least one level of the type structure, so