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 | 41d183ed8ddd91cb6d4b7e4d09015e822e1952ca (patch) | |
| tree | 1025aef1e2d159dd36dc52ee5155e2cb4afb2ad1 /llvm/lib | |
| parent | 4855ebf6221902afc393cf4d061ef0cdca456037 (diff) | |
| download | bcm5719-llvm-41d183ed8ddd91cb6d4b7e4d09015e822e1952ca.tar.gz bcm5719-llvm-41d183ed8ddd91cb6d4b7e4d09015e822e1952ca.zip | |
don't let Reid build void*'s :)
llvm-svn: 21571
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 48c468a4a46..a212c3b7b98 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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); |

