From: Chris Lattner Date: Tue, 26 Apr 2005 20:03:33 +0000 (+0000) Subject: don't let Reid build void*'s :) X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3f80a3885919fb42a56a22ccca5e7301335b60e1;p=oota-llvm.git don't let Reid build void*'s :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21571 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 48c468a4a46..a212c3b7b98 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -1110,6 +1110,8 @@ static TypeMap PointerTypes; PointerType *PointerType::get(const Type *ValueType) { assert(ValueType && "Can't get a pointer to type!"); + assert(ValueType != Type::VoidTy && + "Pointer to void is not valid, use sbyte* instead!"); PointerValType PVT(ValueType); PointerType *PT = PointerTypes.get(PVT);