aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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