From 7ef856dfad10615cac37eb0eb7932cd1fbdcf9e8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Feb 2007 23:10:31 +0000 Subject: [PATCH] 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 --- lib/Support/SmallPtrSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1