From 00f488012c6c44bc6ee35a3078a0063e10f152e3 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 2 Feb 2010 21:11:22 +0000 Subject: [PATCH] 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 --- include/llvm/ADT/DenseSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index 89f55caa954..0898b968aca 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/include/llvm/ADT/DenseSet.h @@ -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) { -- 2.34.1