forked from OSchip/llvm-project
label* is not a valid type, add an assertion.
llvm-svn: 30968
This commit is contained in:
parent
9a1c7dd27a
commit
04e71c6e4d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue