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 | 22cab6c752c75f81c05c679befd437e613138f6f (patch) | |
tree | d2347d2fa77db99b9d4efe487a660296700756d8 /lib/VMCore/Type.cpp | |
parent | 3f7d8c65bb15f36f9feff92a52e8d401f94dfed2 (diff) | |
download | external_llvm-22cab6c752c75f81c05c679befd437e613138f6f.zip external_llvm-22cab6c752c75f81c05c679befd437e613138f6f.tar.gz external_llvm-22cab6c752c75f81c05c679befd437e613138f6f.tar.bz2 |
Unbreak the sparc backend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index a212c3b..c9312a8 100644 --- a/lib/VMCore/Type.cpp +++ b/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); |