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

Chris Lattner sabre at nondot.org
Sun Oct 15 16:21:27 PDT 2006



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.146 -> 1.147
---
Log message:

label* is not a valid type, add an assertion.


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

 Type.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.146 llvm/lib/VMCore/Type.cpp:1.147
--- llvm/lib/VMCore/Type.cpp:1.146	Thu Sep 28 18:45:00 2006
+++ llvm/lib/VMCore/Type.cpp	Sun Oct 15 18:21:12 2006
@@ -1204,6 +1204,7 @@
   assert(ValueType && "Can't get a pointer to <null> type!");
   assert(ValueType != Type::VoidTy &&
          "Pointer to void is not valid, use sbyte* instead!");
+  assert(ValueType != Type::LabelTy && "Pointer to label is not valid!");
   PointerValType PVT(ValueType);
 
   PointerType *PT = PointerTypes->get(PVT);






More information about the llvm-commits mailing list