forked from OSchip/llvm-project
parent
4855ebf622
commit
41d183ed8d
|
@ -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