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 /lib/VMCore/Type.cpp | |
parent | 43fd4d077f22e6b71a8a96c6662c9a15dab0f330 (diff) | |
download | external_llvm-3f80a3885919fb42a56a22ccca5e7301335b60e1.zip external_llvm-3f80a3885919fb42a56a22ccca5e7301335b60e1.tar.gz external_llvm-3f80a3885919fb42a56a22ccca5e7301335b60e1.tar.bz2 |
don't let Reid build void*'s :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-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); |