[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 9 09:52:02 PST 2003


Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.106 -> 1.107

---
Log message:

Add an assertion


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.106 llvm/lib/VMCore/AsmWriter.cpp:1.107
--- llvm/lib/VMCore/AsmWriter.cpp:1.106	Thu Oct 30 17:41:03 2003
+++ llvm/lib/VMCore/AsmWriter.cpp	Sun Nov  9 09:51:07 2003
@@ -631,6 +631,7 @@
       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





More information about the llvm-commits mailing list