From 310474f576e669232a481b4ba9a9c9fe50457076 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 --- llvm/lib/IR/Type.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/IR/Type.cpp b/llvm/lib/IR/Type.cpp index 700f93917141..84956c2c9e51 100644 --- a/llvm/lib/IR/Type.cpp +++ b/llvm/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 {