From: Chris Lattner Date: Sun, 15 Oct 2006 23:21:12 +0000 (+0000) Subject: label* is not a valid type, add an assertion. X-Git-Tag: android-x86-6.0-r1~1003^2~40223 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f53104051e87552b708c3b3b0a79e8910d80cf90;p=android-x86%2Fexternal-llvm.git label* is not a valid type, add an assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30968 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b7cf54d72a6..e87da1d6e0a 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 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);