From 28ead23d1ccb2bb63c4f1c4a362aea2cfef4b157 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 21 Apr 2006 15:33:35 +0000 Subject: [PATCH] Remove a hack required by V9. llvm-svn: 27931 --- llvm/lib/VMCore/Type.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 767df24f279e..335bc4ee525d 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -1192,10 +1192,8 @@ static TypeMap PointerTypes; PointerType *PointerType::get(const Type *ValueType) { assert(ValueType && "Can't get a pointer to type!"); - // FIXME: The sparc backend makes void pointers, which is horribly broken. - // "Fix" it, then reenable this assertion. - //assert(ValueType != Type::VoidTy && - // "Pointer to void is not valid, use sbyte* instead!"); + assert(ValueType != Type::VoidTy && + "Pointer to void is not valid, use sbyte* instead!"); PointerValType PVT(ValueType); PointerType *PT = PointerTypes.get(PVT);