mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix a bug in SmallPtrSet that was causing GVNPRE to enter an infinite loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61766cae0b
commit
6394e5e4fd
@ -154,7 +154,7 @@ SmallPtrSetImpl::SmallPtrSetImpl(const SmallPtrSetImpl& that) {
|
||||
// terminator.
|
||||
memcpy(CurArray, that.CurArray, sizeof(void*)*(CurArraySize+1));
|
||||
} else {
|
||||
CurArraySize = that.NumElements < 64 ? 128 : that.NumElements*2;
|
||||
CurArraySize = that.NumElements < 64 ? 128 : that.CurArraySize*2;
|
||||
CurArray = new void*[CurArraySize+1];
|
||||
memset(CurArray, -1, CurArraySize*sizeof(void*));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user