projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4caf76b
)
IR: Remove a no longer needed assert.
author
Peter Collingbourne
<peter@pcc.me.uk>
Sat, 29 Oct 2016 20:57:12 +0000
(20:57 +0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Sat, 29 Oct 2016 20:57:12 +0000
(20:57 +0000)
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
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Type.cpp
b/llvm/lib/IR/Type.cpp
index
700f939
..
84956c2
100644
(file)
--- 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 {