llvm.org GIT mirror llvm / 2b5c552
Put an unused result attribute on SmallSet::empty() This matches other empty() container functions in LLVM. No actual usage problems discovered in this instance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195562 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 6 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 public:
3939 SmallSet() {}
4040
41 bool empty() const { return Vector.empty() && Set.empty(); }
41 bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const {
42 return Vector.empty() && Set.empty();
43 }
44
4245 unsigned size() const {
4346 return isSmall() ? Vector.size() : Set.size();
4447 }