summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-11-23 23:06:20 +0000
committerAlp Toker <alp@nuanti.com>2013-11-23 23:06:20 +0000
commit20be263c378b58ef6359be5b584a751da77cfc8e (patch)
tree2814242adc88ba12f1d205493c4e95e70c1b6ba5
parent5ec76a0084d42081c5a2b6473335d241585d9cb5 (diff)
downloadbcm5719-llvm-20be263c378b58ef6359be5b584a751da77cfc8e.tar.gz
bcm5719-llvm-20be263c378b58ef6359be5b584a751da77cfc8e.zip
Put an unused result attribute on SmallSet::empty()
This matches other empty() container functions in LLVM. No actual usage problems discovered in this instance. llvm-svn: 195562
-rw-r--r--llvm/include/llvm/ADT/SmallSet.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/SmallSet.h b/llvm/include/llvm/ADT/SmallSet.h
index 5dfe924f6d7..ecd3843cd0a 100644
--- a/llvm/include/llvm/ADT/SmallSet.h
+++ b/llvm/include/llvm/ADT/SmallSet.h
@@ -39,7 +39,10 @@ class SmallSet {
public:
SmallSet() {}
- bool empty() const { return Vector.empty() && Set.empty(); }
+ bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const {
+ return Vector.empty() && Set.empty();
+ }
+
unsigned size() const {
return isSmall() ? Vector.size() : Set.size();
}
OpenPOWER on IntegriCloud