summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-29 12:10:46 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-29 12:10:46 +0000
commit4d5e5e5d61b404cb3bac9745e0dbfca6a1b8af2e (patch)
tree2abbb90c7b0cb3333987a980eac5d25ea1d837f2 /lib/VMCore
parenta84e7508ebcfe2eacdf8153bd83fa63eebe75aea (diff)
Use the accessor method instead of the raw ivar to get the bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Attributes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index b2744c980d9..3a593574cc7 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -335,23 +335,23 @@ uint64_t AttributeImpl::getAttrMask(uint64_t Val) {
}
bool AttributeImpl::hasAttribute(uint64_t A) const {
- return (Bits & getAttrMask(A)) != 0;
+ return (Raw() & getAttrMask(A)) != 0;
}
bool AttributeImpl::hasAttributes() const {
- return Bits != 0;
+ return Raw() != 0;
}
bool AttributeImpl::hasAttributes(const Attribute &A) const {
- return Bits & A.Raw(); // FIXME: Raw() won't work here in the future.
+ return Raw() & A.Raw(); // FIXME: Raw() won't work here in the future.
}
uint64_t AttributeImpl::getAlignment() const {
- return Bits & getAttrMask(Attribute::Alignment);
+ return Raw() & getAttrMask(Attribute::Alignment);
}
uint64_t AttributeImpl::getStackAlignment() const {
- return Bits & getAttrMask(Attribute::StackAlignment);
+ return Raw() & getAttrMask(Attribute::StackAlignment);
}
//===----------------------------------------------------------------------===//