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 | da8571b464d949a5585de456e65be6300a5204d7 (patch) | |
| tree | 4fa771c3b4ce491b04c8c32ba803c585385c1d07 /llvm/lib | |
| parent | 75bc7cec4bf5c387fa0ce016fc65b4ddbfc41b3a (diff) | |
| download | bcm5719-llvm-da8571b464d949a5585de456e65be6300a5204d7.tar.gz bcm5719-llvm-da8571b464d949a5585de456e65be6300a5204d7.zip | |
Add an assertion
llvm-svn: 9831
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index b5dfe41e84e..c9c4dde7e85 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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 |

