mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-12 15:51:35 +00:00
Fix a bug in SmallPtrSet that was causing GVNPRE to enter an infinite loop.
llvm-svn: 37697
This commit is contained in:
parent
3ac68a90f2
commit
41515dcd4b
@ -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…
x
Reference in New Issue
Block a user