mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Make DenseSet's erase pass on the return value rather than swallowing it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ebdcbc26c7
commit
00f488012c
@ -41,8 +41,8 @@ public:
|
||||
return TheMap.count(V);
|
||||
}
|
||||
|
||||
void erase(const ValueT &V) {
|
||||
TheMap.erase(V);
|
||||
bool erase(const ValueT &V) {
|
||||
return TheMap.erase(V);
|
||||
}
|
||||
|
||||
DenseSet &operator=(const DenseSet &RHS) {
|
||||
|
Loading…
Reference in New Issue
Block a user