diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-27 18:57:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-27 18:57:15 +0000 |
commit | 0a6f42ac1d7d42c11c3a1746a7d901d3e226eb1a (patch) | |
tree | 60bd1ecf89f52d777f3af29c368f2f8e224d2b7f | |
parent | 08b49405094d03073c2052f774cb99a73f9f8d9b (diff) | |
download | bcm5719-llvm-0a6f42ac1d7d42c11c3a1746a7d901d3e226eb1a.tar.gz bcm5719-llvm-0a6f42ac1d7d42c11c3a1746a7d901d3e226eb1a.zip |
Unbreak the sparc backend.
llvm-svn: 21598
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index a212c3b7b98..c9312a86c97 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/lib/VMCore/Type.cpp @@ -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); |