From 87247f2c07ae68b26203979722fc926469d7cc7f Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sat, 29 Oct 2016 20:57:12 +0000 Subject: [PATCH] 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 --- lib/IR/Type.cpp | 5 ----- 1 file changed, 5 deletions(-) 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 {