From 47ef7cffb8c57db504f7cfb10defb63ff082b3b5 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Fri, 2 Nov 2012 09:02:37 +0000 Subject: [PATCH] Enable the assertion in getIntPtrType (I've audited all users of this method and they are now all correct; hopefully the buildbots will agree!). llvm-svn: 167289 --- llvm/lib/VMCore/DataLayout.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/VMCore/DataLayout.cpp b/llvm/lib/VMCore/DataLayout.cpp index c127aab..19cf0f5 100644 --- a/llvm/lib/VMCore/DataLayout.cpp +++ b/llvm/lib/VMCore/DataLayout.cpp @@ -671,13 +671,8 @@ IntegerType *DataLayout::getIntPtrType(LLVMContext &C, /// least as big as that of a pointer of the given pointer (vector of pointer) /// type. Type *DataLayout::getIntPtrType(Type *Ty) const { -#if 0 - // FIXME: This assert should always have been here, but the review comments - // weren't addressed in time, and now there is lots of code "depending" on - // this. Uncomment once this is cleaned up. assert(Ty->isPtrOrPtrVectorTy() && "Expected a pointer or pointer vector type."); -#endif unsigned NumBits = getTypeSizeInBits(Ty->getScalarType()); IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); if (VectorType *VecTy = dyn_cast(Ty)) -- 2.7.4