summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DataLayout.cpp
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
commit47ef7cffb8c57db504f7cfb10defb63ff082b3b5 (patch)
tree4599ae44b0959b3f64c1beb2d417f3da81f63e5d /llvm/lib/VMCore/DataLayout.cpp
parentb62807a95c3fda8e0bd1405b22bebfadacac4fd8 (diff)
downloadbcm5719-llvm-47ef7cffb8c57db504f7cfb10defb63ff082b3b5.tar.gz
bcm5719-llvm-47ef7cffb8c57db504f7cfb10defb63ff082b3b5.zip
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
Diffstat (limited to 'llvm/lib/VMCore/DataLayout.cpp')
-rw-r--r--llvm/lib/VMCore/DataLayout.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/DataLayout.cpp b/llvm/lib/VMCore/DataLayout.cpp
index c127aaba42c..19cf0f5cd3e 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<VectorType>(Ty))
OpenPOWER on IntegriCloud