Unbreak the sparc backend.
authorChris Lattner <sabre@nondot.org>
Wed, 27 Apr 2005 18:57:15 +0000 (18:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Apr 2005 18:57:15 +0000 (18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index a212c3b7b981ac1970539f998480022b9e7e7d2e..c9312a86c972913e31e214edc928c3a07e21a45f 100644 (file)
@@ -1110,8 +1110,10 @@ 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!");
+  // 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!");
   PointerValType PVT(ValueType);
 
   PointerType *PT = PointerTypes.get(PVT);