diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-09 15:51:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-09 15:51:07 +0000 |
commit | 54baafd28649a93c7c16ada4529b9212dc03aa05 (patch) | |
tree | a279932fc6c1e260229eaf3ea0241197ff10c211 | |
parent | 1654bdba0b903a9368b5a00b9bf4f95a1653a95e (diff) |
Add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9831 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index b5dfe41e84..c9c4dde7e8 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<Constant>(V)) { printConstant(CPV); } else if (const Type *Ty = dyn_cast<Type>(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 |