aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/Type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index b7cf54d..e87da1d 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -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);