diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-15 23:21:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-15 23:21:12 +0000 |
commit | f53104051e87552b708c3b3b0a79e8910d80cf90 (patch) | |
tree | 085aed779a6e0051c96f9a835b7bd005af95aa44 /lib/VMCore | |
parent | 02c0e3659fb055dd23f33e3aa5b2793798ccb66f (diff) | |
download | external_llvm-f53104051e87552b708c3b3b0a79e8910d80cf90.zip external_llvm-f53104051e87552b708c3b3b0a79e8910d80cf90.tar.gz external_llvm-f53104051e87552b708c3b3b0a79e8910d80cf90.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Type.cpp | 1 |
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); |