Use the number of 'slots' in the AttributeSetImpl being 0 to indicate that the AttributeSet is empty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2013-01-30 19:39:21 +00:00
parent f578c89dc6
commit aa57893e84

View File

@ -308,7 +308,7 @@ public:
/// \brief Return true if there are no attributes.
bool isEmpty() const {
return pImpl == 0;
return getNumSlots() == 0;
}
/// \brief Return the number of slots used in this attribute list. This is