diff options
-rw-r--r-- | lib/VMCore/Type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 48c468a..a212c3b 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -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); |