summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-30 19:39:21 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-30 19:39:21 +0000
commitaa57893e84ba7a35948fcaa99812ba88e58f4797 (patch)
tree1357c022ed92714c5afa986dda707d58567c6726
parentf578c89dc6ca3e79667c2aa9d0ac4fe409da7773 (diff)
downloadllvm-aa57893e84ba7a35948fcaa99812ba88e58f4797.tar.gz
llvm-aa57893e84ba7a35948fcaa99812ba88e58f4797.tar.bz2
llvm-aa57893e84ba7a35948fcaa99812ba88e58f4797.tar.xz
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
-rw-r--r--include/llvm/IR/Attributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 5ebb6296cd..a1da4470d0 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -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