Remove a hack required by V9.
authorChris Lattner <sabre@nondot.org>
Fri, 21 Apr 2006 15:33:35 +0000 (15:33 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 21 Apr 2006 15:33:35 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27931 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 767df24f279e207358de3c05e391103d95674738..335bc4ee525df95ce52e04c9d9a092cb9ed37b5f 100644 (file)
@@ -1192,10 +1192,8 @@ static TypeMap<PointerValType, PointerType> PointerTypes;
 
 PointerType *PointerType::get(const Type *ValueType) {
   assert(ValueType && "Can't get a pointer to <null> 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);