summaryrefslogtreecommitdiffstats
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
commit866fc410605b744331f51cb40eafa57904c72b3c (patch)
treedad21ef7fcad387a898ba333b216f22a5da3cec4
parent9588a02b778c8daa4f9db853ed811df85603b6ac (diff)
downloadbcm5719-llvm-866fc410605b744331f51cb40eafa57904c72b3c.tar.gz
bcm5719-llvm-866fc410605b744331f51cb40eafa57904c72b3c.zip
Use the number of 'slots' in the AttributeSetImpl being 0 to indicate that the AttributeSet is empty.
llvm-svn: 173962
-rw-r--r--llvm/include/llvm/IR/Attributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index 5ebb6296cd6..a1da4470d03 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/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
OpenPOWER on IntegriCloud