diff options
-rw-r--r-- | include/llvm/ADT/DenseSet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/DenseSet.h b/include/llvm/ADT/DenseSet.h index f1510a9a20..06d0fa8e0d 100644 --- a/include/llvm/ADT/DenseSet.h +++ b/include/llvm/ADT/DenseSet.h @@ -41,8 +41,8 @@ public: return TheMap.count(V); } - void insert(const ValueT &V) { - TheMap[V] = 0; + bool insert(const ValueT &V) { + return TheMap.insert(std::make_pair(V, 0)); } void erase(const ValueT &V) { |