aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-21 15:33:35 +0000
committerChris Lattner <sabre@nondot.org>2006-04-21 15:33:35 +0000
commita5d824e90cddd5816ca7ab8a608d8faa1a289410 (patch)
tree2c7ab3e5b67d35bd6fe8660d7b27fcce95938f3e
parentef027f940cca409d9e923be3e30afa3f4f0af41a (diff)
downloadexternal_llvm-a5d824e90cddd5816ca7ab8a608d8faa1a289410.zip
external_llvm-a5d824e90cddd5816ca7ab8a608d8faa1a289410.tar.gz
external_llvm-a5d824e90cddd5816ca7ab8a608d8faa1a289410.tar.bz2
Remove a hack required by V9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27931 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Type.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 767df24..335bc4e 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -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);