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

llvm-svn: 30968
This commit is contained in:
Chris Lattner 2006-10-15 23:21:12 +00:00
parent 9a1c7dd27a
commit 04e71c6e4d
1 changed files with 1 additions and 0 deletions

View File

@ -1204,6 +1204,7 @@ PointerType *PointerType::get(const Type *ValueType) {
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);