summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-04-04 04:54:21 +0000
committerNadav Rotem <nrotem@apple.com>2013-04-04 04:54:21 +0000
commit319758aa7cde305e12dc15a2e7187795db281ac1 (patch)
treed3e93b9447bef66928d2c2372e430313268902a5
parent7b51ae8e0e09816737d3bcd471666d5f6a5695c0 (diff)
downloadbcm5719-llvm-319758aa7cde305e12dc15a2e7187795db281ac1.tar.gz
bcm5719-llvm-319758aa7cde305e12dc15a2e7187795db281ac1.zip
Document the return value of SmallSet insert.
llvm-svn: 178742
-rw-r--r--llvm/include/llvm/ADT/SmallSet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h
index 4eb7de895a6..5dfe924f6d7 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -55,6 +55,7 @@ public:
}
/// insert - Insert an element into the set if it isn't already there.
+ /// Returns true if the element is inserted (it was not in the set before).
bool insert(const T &V) {
if (!isSmall())
return Set.insert(V).second;
OpenPOWER on IntegriCloud