[llvm] r285506 - IR: Remove a no longer needed assert.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 29 13:57:13 PDT 2016
Author: pcc
Date: Sat Oct 29 15:57:12 2016
New Revision: 285506
URL: http://llvm.org/viewvc/llvm-project?rev=285506&view=rev
Log:
IR: Remove a no longer needed assert.
This assert was checking for a miscompile in a version of GCC that
we no longer support.
Modified:
llvm/trunk/lib/IR/Type.cpp
Modified: llvm/trunk/lib/IR/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Type.cpp?rev=285506&r1=285505&r2=285506&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Type.cpp (original)
+++ llvm/trunk/lib/IR/Type.cpp Sat Oct 29 15:57:12 2016
@@ -674,12 +674,7 @@ PointerType *PointerType::get(Type *EltT
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 {
More information about the llvm-commits
mailing list