mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
don't let Reid build void*'s :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43fd4d077f
commit
3f80a38859
@ -1110,6 +1110,8 @@ static TypeMap<PointerValType, PointerType> PointerTypes;
|
||||
|
||||
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!");
|
||||
PointerValType PVT(ValueType);
|
||||
|
||||
PointerType *PT = PointerTypes.get(PVT);
|
||||
|
Loading…
Reference in New Issue
Block a user