[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 27 11:57:31 PDT 2005



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.127 -> 1.128
---
Log message:

Unbreak the sparc backend.


---
Diffs of the changes:  (+4 -2)

 Type.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.127 llvm/lib/VMCore/Type.cpp:1.128
--- llvm/lib/VMCore/Type.cpp:1.127	Tue Apr 26 15:03:33 2005
+++ llvm/lib/VMCore/Type.cpp	Wed Apr 27 13:57:15 2005
@@ -1110,8 +1110,10 @@
 
 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);






More information about the llvm-commits mailing list