mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
02c0e3659f
commit
f53104051e
@ -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
Block a user