diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-26 20:03:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-26 20:03:33 +0000 |
commit | 3f80a3885919fb42a56a22ccca5e7301335b60e1 (patch) | |
tree | 7a2128c091f6de9fd196f18cd4558c240da47b51 | |
parent | 43fd4d077f22e6b71a8a96c6662c9a15dab0f330 (diff) |
don't let Reid build void*'s :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21571 91177308-0d34-0410-b5e6-96231b3b80d8
-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 48c468a4a4..a212c3b7b9 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); |