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

llvm-svn: 173962
This commit is contained in:
Bill Wendling 2013-01-30 19:39:21 +00:00
parent 9588a02b77
commit 866fc41060
1 changed files with 1 additions and 1 deletions

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