commit | 7ef856dfad10615cac37eb0eb7932cd1fbdcf9e8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Feb 05 23:10:31 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Feb 05 23:10:31 2007 +0000 |
tree | 48bd61bfb7140a76d5053437903e4a08d980ff05 | |
parent | fc7d13d898b622ae6a02c71b3a30eebd53cf202b [diff] [blame] |
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 1eea727..758a952 100644 --- a/lib/Support/SmallPtrSet.cpp +++ b/lib/Support/SmallPtrSet.cpp
@@ -56,7 +56,7 @@ // Clear the end element. E[-1] = getEmptyMarker(); --NumElements; - return false; + return true; } return false;