mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
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
This commit is contained in:
parent
bc6ef9dce9
commit
62bf31d415
@ -39,7 +39,10 @@ class SmallSet {
|
|||||||
public:
|
public:
|
||||||
SmallSet() {}
|
SmallSet() {}
|
||||||
|
|
||||||
bool empty() const { return Vector.empty() && Set.empty(); }
|
bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const {
|
||||||
|
return Vector.empty() && Set.empty();
|
||||||
|
}
|
||||||
|
|
||||||
unsigned size() const {
|
unsigned size() const {
|
||||||
return isSmall() ? Vector.size() : Set.size();
|
return isSmall() ? Vector.size() : Set.size();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user