From: Chris Lattner Date: Mon, 5 Feb 2007 23:10:31 +0000 (+0000) Subject: Fix a bug in smallptrset::erase: in the small case, return true if the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ef856dfad10615cac37eb0eb7932cd1fbdcf9e8;p=oota-llvm.git Fix a bug in smallptrset::erase: in the small case, return true if the element was in the set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33931 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/SmallPtrSet.cpp b/lib/Support/SmallPtrSet.cpp index 1eea7272e01..758a952ae42 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/lib/Support/SmallPtrSet.cpp @@ -56,7 +56,7 @@ bool SmallPtrSetImpl::erase(void *Ptr) { // Clear the end element. E[-1] = getEmptyMarker(); --NumElements; - return false; + return true; } return false;