Fix an issue where assignments that caused a SmallPtrSet to become non-small
authorOwen Anderson <resistor@mac.com>
Wed, 18 Jul 2007 19:54:15 +0000 (19:54 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 18 Jul 2007 19:54:15 +0000 (19:54 +0000)
commitb54b315251848ddab87ef9f2aa9aac92e3c68357
tree735aab1cd8b6b44495a0719b2e6e4000453aa346
parent48613b930a34d6f98e7d3dd86aa49cc3dbd61c85
Fix an issue where assignments that caused a SmallPtrSet to become non-small
would result in calling realloc() on a null pointer.  Instead, if we encounter
this situation, make a normal call to malloc().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40014 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/SmallPtrSet.cpp