IR: Remove a no longer needed assert.

This assert was checking for a miscompile in a version of GCC that
we no longer support.

llvm-svn: 285506
This commit is contained in:
Peter Collingbourne 2016-10-29 20:57:12 +00:00
parent 4caf76bee2
commit 310474f576
1 changed files with 0 additions and 5 deletions

View File

@ -674,12 +674,7 @@ PointerType *PointerType::get(Type *EltTy, unsigned AddressSpace) {
PointerType::PointerType(Type *E, unsigned AddrSpace) PointerType::PointerType(Type *E, unsigned AddrSpace)
: SequentialType(PointerTyID, E) { : SequentialType(PointerTyID, E) {
#ifndef NDEBUG
const unsigned oldNCT = NumContainedTys;
#endif
setSubclassData(AddrSpace); setSubclassData(AddrSpace);
// Check for miscompile. PR11652.
assert(oldNCT == NumContainedTys && "bitfield written out of bounds?");
} }
PointerType *Type::getPointerTo(unsigned addrs) const { PointerType *Type::getPointerTo(unsigned addrs) const {