mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
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
This commit is contained in:
@@ -671,13 +671,8 @@ IntegerType *DataLayout::getIntPtrType(LLVMContext &C,
|
|||||||
/// least as big as that of a pointer of the given pointer (vector of pointer)
|
/// least as big as that of a pointer of the given pointer (vector of pointer)
|
||||||
/// type.
|
/// type.
|
||||||
Type *DataLayout::getIntPtrType(Type *Ty) const {
|
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() &&
|
assert(Ty->isPtrOrPtrVectorTy() &&
|
||||||
"Expected a pointer or pointer vector type.");
|
"Expected a pointer or pointer vector type.");
|
||||||
#endif
|
|
||||||
unsigned NumBits = getTypeSizeInBits(Ty->getScalarType());
|
unsigned NumBits = getTypeSizeInBits(Ty->getScalarType());
|
||||||
IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits);
|
IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits);
|
||||||
if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
|
if (VectorType *VecTy = dyn_cast<VectorType>(Ty))
|
||||||
|
Reference in New Issue
Block a user