aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-11-02 09:02:37 +0000
committerDuncan Sands <baldrick@free.fr>2012-11-02 09:02:37 +0000
commit9825d1edf000b64c967264593a59b0f2023caf6a (patch)
tree77fab6dd007d4c584e10e1d0a0e1e6107d2ebce5 /lib/VMCore
parent52df6c2eec06861d9e933bae5b055f0b4e52f74f (diff)
downloadexternal_llvm-9825d1edf000b64c967264593a59b0f2023caf6a.zip
external_llvm-9825d1edf000b64c967264593a59b0f2023caf6a.tar.gz
external_llvm-9825d1edf000b64c967264593a59b0f2023caf6a.tar.bz2
Enable the assertion in getIntPtrType (I've audited all users of this method and
they are now all correct; hopefully the buildbots will agree!). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/DataLayout.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/DataLayout.cpp b/lib/VMCore/DataLayout.cpp
index c127aab..19cf0f5 100644
--- a/lib/VMCore/DataLayout.cpp
+++ b/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<VectorType>(Ty))