diff --git a/lib/IR/Type.cpp b/lib/IR/Type.cpp index 700f9391714..84956c2c9e5 100644 --- a/lib/IR/Type.cpp +++ b/lib/IR/Type.cpp @@ -674,12 +674,7 @@ PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) { PointerType::PointerType(Type *E, unsigned AddrSpace) : SequentialType(PointerTyID, E) { -#ifndef NDEBUG - const unsigned oldNCT = NumContainedTys; -#endif setSubclassData(AddrSpace); - // Check for miscompile. PR11652. - assert(oldNCT == NumContainedTys && "bitfield written out of bounds?"); } PointerType *Type::getPointerTo(unsigned addrs) const {